Forum rules
IMPORTANT
This Forum is for Flash related questions ONLY! Do not ask questions about spriting, Game Maker, Photoshop, or anything else not related to Flash.
Author |
Message |
felixmor
Joined: Sat May 29, 2010 6:15 pm Posts: 1
Gender: Anime Girl
|
Basically, I want to know if there is a timer command that lets me do something after a certain amount of time has passed. I.e, i click a button, then after 5 seconds or so a movie clip plays.
help is appreciated, ty
|
Sat Jun 05, 2010 9:57 am |
|
|
racoon
Joined: Sun Sep 28, 2008 6:46 pm Posts: 51
Gender: Anime Girl
|
Normally these things are dealt with intervals and what not to create a timer.
But perhaps this might be easier, Flash is done in frames per second.
So for instance 30 frames persecond would mean obviously for every 30 frames one second has past.
So lets say we have a variable called "timer" all we would have to do is have it increment by (1/30) The ratio of how many frames per second, to get a reliable well timer.
Now all you have to do is for a command to be executing once it reaches five seconds.
An easy to create and simple timer.
_________________Would you kindly go here clicky and read at least the first few paragraphs
|
Sat Jun 05, 2010 1:30 pm |
|
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|