SGDK only sub forum
3 posts • Page 1 of 1
give the animation a loop variable. 1 means loop and 0 means don't loop. When you're incrementing the frame index, add a check: if it reaches the last frame and the loop variable is 0, then don't increment. It'll stay at the last frame.
- Very interested
- Posts: 2945
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
If you are using SGDK sprite engine, also be sure to set the time parameter in the resource definition to 0 so you can manually control the animation for this sprite using SPR_nextFrame(..) or SPR_setFrame(..) methods.
Who is online
Users browsing this forum: No registered users and 1 guest