Hi,
I am make a game in which a ball bounces and the player has to touch the ball with the cursor. I want the game to stop after 60 seconds. I am able to do the bouncing and touching part but not the time limit part. How can I get the program to stop after 60 sec? Thank you.
<when green flag clicked>
<repeat until>
<set{ }to( 0)
<repeat until><timer> < 60
Offline
Try this:
Edit: Actually, kimmy123's is better.
Last edited by hmnwilson (2010-11-20 13:11:13)
Offline
<when green flag clicked>
<forever if><( <timer> <=> <60> )>
<stop all><end>
Offline
kimmy123 wrote:
[blocks]
<when green flag clicked>
<wait( 60 ) secsc>
<stop all>
[/blocks]
Yeah. Just make a variable called Timer that goes down by one every second until it reaches zero.
Offline
PlutoIsHades wrote:
kimmy123 wrote:
[blocks]
<when green flag clicked>
<wait( 60 ) secsc>
<stop all>
[/blocks]Yeah. Just make a variable called Timer that goes down by one every second until it reaches zero.
That's extremely inaccurate. Use the timer.
Offline