The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 5:36 am

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.



 [ 2 posts ] 
[Request] Timer 
Author Message

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
User avatar

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
Image


Sat Jun 05, 2010 1:30 pm
Display posts from previous:  Sort by  
 [ 2 posts ] 

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

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.