PDA

View Full Version : [AS2] Doing a timer a different way.


Hackor Pickel
12-16-2008, 04:35 PM
Ok, i usually make my timers by creating a movieclip off stage, going inside that movieclip and creating a keyframe on whatever framerate, and putting this on the frame where i want the timer to add, or minus to the text box:

_root.timer +=1;

But is there a different and better way of doing this?

rrh
12-16-2008, 05:17 PM
In AS2, there's setInterval

Hackor Pickel
12-17-2008, 09:02 AM
uhh, ok thanks i'll have a look at that. :D

NickZA
12-18-2008, 09:43 PM
I learnt from the best in this area :)

http://www.gamepoetry.com/blog/2008/04/18/understanding-the-game-loop/

http://www.8bitrocket.com/newsdisplay.aspx?newspage=10248

...Knowledge of correct timing in ActionScript games is one of the first things any aspiring Flash game developer should learn.