I’m creating a basic animation class so I can create animations on-the-fly from the frames on a sprite sheet. That’s all easy, my only question is to what would be more efficient. Creating a timer to fire really often (depending on how many FPS I want the animation to be) or setting a function to run every frame and checking if the animation frame should progress?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Using triggerign a custom class method when an animation completes?
|
0 | 109 | March 30, 2009 | |
Play in Reverse/Creating a Class | 0 | 114 | January 15, 2011 | |
An EnterFrame-Timer | 0 | 92 | February 8, 2010 | |
How often you create custom classes for small projects | 0 | 106 | March 9, 2010 | |
If no movement go to some frame... setInterval?
|
0 | 79 | September 6, 2007 |