Sign in to follow this  
kingpinzs

halep pausing my animation player

Recommended Posts

I made a custom animation player. It loads the image and plays it but I can’t pause it or stop it. So my question is how can I pause the below code.
int Animation()
{
int frame;    


if (GetTickCount()>= start_time + DTime)
{
  frame++;
if (ImRight >= ImWidth &&ImLeft >= ImWidth-FrWidth)
{         
ImLeft = 0;
ImRight= 92;
}
if (ImRight <=ImWidth && ImLeft <=ImWidth-FrWidth)
{
ImLeft = 92+ImLeft ;
ImRight = 92+ImRight;
}
if (frame == NumFrames) frame = 0;
  start_time = GetTickCount();

}
}  

would i beable to puse it or would I have to intrupt the loop?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this