-
How do i make a timer for a game so when it gets to zero it will change scenes?
-
-
Pillow Daddy
-
Gross Pecululatarian
Could you please use sensible words? Don't want ot get these forums looking like those other horrid forums, ***********.
Note to dismayed users: Previously, this thread had the title "Titties and Weed: help w/ flash"
[Edited by Ed_Mack on 04-09-2002 at 12:51 PM]
-
Actions/Objects/Data/getTime
-
SaphuA
Hmmm...
I use the n00b way:
make a MC with 12 frames (depends on youre movie speed)
put on the 12th frame a key frame with this script.
_root.timer-=1;
now on the maintimeline make a dynamic textfield with the value you want the player to have the time...
now use this script on a MC or something:
if(_root.timer==0){
gotoAndStop("YouLosePunk");
}
-
Gross Pecululatarian
This is quite easy:
onClipEvent(load){
start = getTimer();
secs = 5; // The delay
}
onClipEvent(enterFrame){
now = getTimer();
passed = now - start;
if(passed/1000 > secs){
// Do somthing
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|