This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-11-20 12:58:07

Kowalskz
New Scratcher
Registered: 2010-11-20
Posts: 20

Not able to use Timer for 60 seconds

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

 

#2 2010-11-20 13:00:38

kimmy123
Scratcher
Registered: 2008-05-20
Posts: 1000+

Re: Not able to use Timer for 60 seconds

Maybe this script will work:

[blocks]
<when green flag clicked>
<wait( 60 ) secsc>
<stop all>
[/blocks]

Last edited by kimmy123 (2010-11-20 13:00:48)


http://i.imgur.com/Mg3TPIE.pnghttp://i.imgur.com/rgyzXV5.pnghttp://i.imgur.com/685FKVd.pnghttp://24.media.tumblr.com/8678e33865664f328e1654109679cb92/tumblr_mm1qu3jGD71s8caito3_r1_250.gif

Offline

 

#3 2010-11-20 13:09:04

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Not able to use Timer for 60 seconds

Try this:
http://www.freeimagehosting.net/uploads/630c9b9dd5.gif

Edit: Actually, kimmy123's is better.

Last edited by hmnwilson (2010-11-20 13:11:13)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#4 2010-11-20 16:11:31

yoshidude56
Scratcher
Registered: 2010-01-12
Posts: 100+

Re: Not able to use Timer for 60 seconds

<when green flag clicked>
<forever if><( <timer> <=> <60>  )>
<stop all><end>


http://i46.tinypic.com/2ut2ir4.png

Offline

 

#5 2010-11-20 16:57:56

PlutoIsHades
Scratcher
Registered: 2010-10-18
Posts: 1000+

Re: Not able to use Timer for 60 seconds

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.


Minecraft, Redwall, and Cyberchase fan, and PROUD.

Offline

 

#6 2010-11-20 17:58:23

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Not able to use Timer for 60 seconds

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.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer