Ask a Question related to Macromedia Director Lingo, Design and Development.
-
j1mmy webforumsuser@macromedia.com #1
time limit
ive created a game in which you have to guide a car from start 2 finish following a road. i basically want to add a time limit (preferbably 1 minute) in which the user has to complete the race. if the user doesnt complete in the required time, it says game over and goes back 2 the main menu. however, if completed within time limit, a message comes up saying 'congratulaitions' or something similar!
help please!!!!!!!!
j1mmy webforumsuser@macromedia.com Guest
-
Set a time limit to videorecord
How can I set a time limit to videorecord component? -
Pages Exceed Time Limit
Greetings - I have a quick question about logging pages that take more than xx seconds to load as set in CF Administrator. Can somebody intepret... -
set a time limit on videoRecord component.
I need to set a time limit for recording for the videorecord component. I have heard that coding a timer to automaticly press the stop button. ... -
What is the allowable time limit for CFLOOP?
I am getting the following error when looping:- The request has exceeded the allowable time limit Tag: CFLOOP What is the allowable time limit... -
how to time limit folder access?
Hello I would like to be able to time limit user access to a folder ... any ideas on how to do this? can .htaccess etc be used? Cheers Geoff -
Robert Tweed #2
Re: time limit
"j1mmy" <webforumsuser@macromedia.com> wrote in message
news:bqae4p$13m$1@forums.macromedia.com...Well, you can do this with a simple frame script like this:>
> ive created a game in which you have to guide a car from start 2 finish
> following a road. i basically want to add a time limit (preferbably 1
> minute) in which the user has to complete the race. if the user doesnt
> complete in the required time, it says game over and goes back 2 the main
> menu.
property pTimeout
on beginSprite me
timeLimit = 1 * 60 * 60 -- 1 Minute
pTimeout = the ticks + timeLimit
end
on exitFrame me
if( the ticks < pTimeout ) then
go to the frame
else
go to "Time Over"
end if
end
Well, you'd need to have some script in your game code that does a go to> however, if completed within time limit, a message comes up saying
> 'congratulaitions' or something similar!
"Congratulations", when whatever it is that they have to do to win has
happened - then if that is not called within the time limit the frame loop
will take over and jump to the "time over" screen.
- Robert
Robert Tweed Guest



Reply With Quote

