Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Stopping animations

Author
Message
Gaelbin
15
Years of Service
User Offline
Joined: 16th Feb 2009
Location:
Posted: 22nd Feb 2009 06:47
I have what I believe would be a simple question concerning animations. I am making a simple 2D game and I want to know how to stop an animation. That is, I want to play an animation only once, then have it stop, then hide the sprite. Here, just to give context, is the play sprite code I am looking at.

Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 22nd Feb 2009 19:56 Edited at: 22nd Feb 2009 19:57


I'm assuming that you want all 3 frames to play before it hides, so I changed the frame to stop at to 4. It will play 3 frames and then hide at the 4th.

#ifdef _DEBUG
FixBugs(All);
#endif

Login to post a reply

Server time is: 2024-09-30 19:24:38
Your offset time is: 2024-09-30 19:24:38