| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Dec 2001
Posts: 4
|
newbie here,
- creating a "jeopardy" like game in Flash 5. - need help on creating a 'time delay" (about 6 seconds) after the user answers a question (either correctly or incorrectly. the question box pops up, user answers, end result is visible for 6 seconds, then fades out) - i have my main stage. A mc placed on the main stage contains the question/answer box. I would like to have, say, an action that occurs when the user click on the answer (or question in this jeopardy game). When the person reaches a particular frame (in this mc) , a counter starts, going up to 6 seconds, then proceeds onto closing the mc (or fading it out, whatever). something to the effect of: pause=6*1000 ...... (something goes here .... I don't know what though) if(getTimer() > pause) { gotoAndPlay (22); } what do I do here? i know getTimer() has something to do with it. i understand that it counts from when the main movie starts. I want it to start counting when the person hits, say, frame 18. i've checked out the tutorial, but it has everything occuring on the main stage. I want mine occuring in the movie clip. i've tried, but have just gone mad. if anyone can point me in the right direction, i'd appreciate it! chanx |
|
|
|
|
|
#2 |
|
hopeful
Join Date: Apr 2002
Posts: 248
|
you need to set a variable that is equal to the time that the user answers the question.
ActionScript Code:
and that should do the trick (i think). Regards Grifter Last edited by Grifter; 07-29-2002 at 09:09 PM.. |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Swapdepth using txt files and dynamic content for game. | superbnerb | ActionScript 1.0 (and below) | 3 | 09-22-2004 08:27 PM |
| 2 Player Game Question | JayDuck12 | ActionScript 1.0 (and below) | 9 | 04-27-2004 03:41 AM |
| Flash game developpement question. | alphabug | Gaming and Game Development | 2 | 09-03-2003 03:13 PM |
| Another Game Timer question (MX) | friz2002 | Gaming and Game Development | 13 | 04-17-2003 01:47 AM |
| a tough question on controling the hit rate of prizes for a game | crasher11 | Gaming and Game Development | 9 | 10-15-2001 07:20 PM |