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.

2D All the way! / How do i set a time limit for an animation to loop then make it stop?

Author
Message
CRubbish
20
Years of Service
User Offline
Joined: 11th Feb 2004
Location:
Posted: 12th Feb 2004 01:49
I have the code on here, i hope it works.
This is my first post and my first project, bascially i have a sprite character that has 2 frames. I have the loop set to where it will flip back and forth to make it look like he is talking, but i cant make it stop! I just want it to run for a few secs so if anyone has any suggestions or help, please share.

Phil 3:7-11
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 12th Feb 2004 10:10 Edited at: 12th Feb 2004 10:10
Time = timer() + 5000...........5 seconds
If Time <= Timer()


Funny but your source already uses this system, so you should already know this??? Anyway don't use = on it's own because you may never be exactly on 10000. Your code would need >=

Pincho.

CRubbish
20
Years of Service
User Offline
Joined: 11th Feb 2004
Location:
Posted: 26th Feb 2004 05:35
thanks,

well someone told me about the tick/timer thing but i didnt fully understand it at the time and i couldnt make it work properly, but i got it all worked out now, thanks very much.

Phil 3:7-11

Login to post a reply

Server time is: 2024-05-17 11:45:35
Your offset time is: 2024-05-17 11:45:35