Animation and spritessheet

19 views
Skip to first unread message

mega...@gmail.com

unread,
Mar 10, 2015, 2:45:37 AM3/10/15
to gam...@googlegroups.com
I'm following this tutorial, but I can't get the animation tutorial to work: http://gamejs.org/animation-and-spritesheet.html 

I'm not sure I understand it. Are some of the images missing? Will it be possible to get an animation working example?

Simon Oberhammer

unread,
Mar 20, 2015, 4:53:13 PM3/20/15
to gam...@googlegroups.com
sorry for the late reply. can you give me an error message.

the good news is: animations and spritesheets have been put into gamejs itself, so you don't have to write this. check out: http://docs.gamejs.org/gamejs/animate/index.html

and the source code for animations is here: https://github.com/GameJs/gamejs/blob/master/src/gamejs/animate.js

 simon

Chris

unread,
Jul 5, 2015, 3:19:31 PM7/5/15
to gam...@googlegroups.com
Hello, I ran into the same problem.  Make sure you use the gamejs.image.load for the image for the SpriteSheet.

:)

si...@nekapuzer.at

unread,
Jul 6, 2015, 1:59:24 AM7/6/15
to gam...@googlegroups.com
oh, that's the problem. thanks for following up! I will add the image.load calls to the complete example at the bottom.
--
You received this message because you are subscribed to the Google Groups "GameJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gamejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages