Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Architecte

hello,

I begin with ImpactJS.
I would like to know if possible, and suddenly how to use multiple images for a single character, and change its image when a change of direction?
I have 4 sprites, up, down, left and right.
I do not know how to rotate it when I press the key.

Thank you.

1 decade ago by Hareesun

Have them all in one imagine, and use the sprite sheet methods to have that imagine auto-dived into separate animations.

A sample of this code can be found on your downloads page in the Jump'n'Run demo. :)
Page 1 of 1
« first « previous next › last »