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 7daysofrain

Hi all,

All the examples i found uses an animation sheet that uses only one row for all the frames but most of the applications i found to create animation sheets exports the animations in a multiple row fashion. Can i make them work in ImpactJS?

Thanks

1 decade ago by Arantor

Sure you can. It will actually figure it out itself IIRC.

If you have a sprite sheet of 2x2 frames, each 32px square (so you have a 64x64 image), just tell it that there's 32px x 32px images and it just works - or always has for me. You just keep counting, so that the first row is images 0 and 1, and the second row is images 2 and 3...

1 decade ago by beardedbuddha

Arantor is right.. It will just count from top left to bottom right (just like you would read this text), based on the tilesize you have specified..!

1 decade ago by dominic

Yes.
/><br />
~ from the <a href= Animations article

1 decade ago by 7daysofrain

Thank you! I'll give it a try :)

1 decade ago by fulvio

This is one of the many reasons I love ImpactJS.
Page 1 of 1
« first « previous next › last »