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

#1 2012-04-10 12:11:53

SD7
Scratcher
Registered: 2011-09-15
Posts: 100+

Make timer halt where it's at?

Is there a script I can form that makes the timer stop where it's at? (I'm making an iteration of the space game in my signature where you can fight all the enemies in the game at once without having to progress through the points). I wanted to make scoring be determined by how long you survived against every enemy, but even when Stop All comes in, the timer keeps going, and I'd rather have it stop and show you how long you were able to survive. Thanks for any help.


http://img834.imageshack.us/img834/4411/signaturespacegame2.png

Offline

 

#2 2012-04-10 12:23:12

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Make timer halt where it's at?

Set a variable to the timer's value.

Offline

 

#3 2012-04-10 12:39:49

SOScratch
Scratcher
Registered: 2010-02-01
Posts: 100+

Re: Make timer halt where it's at?

For the beginning do this:

when gf clicked
reset timer
hide variable [timer v]
And then when the timer is supposed to stop, do this:

set [timer v] to (timer)
show variable [timer v]
Then the player can see the time they got.


-SOScratch
Scratch On!

Offline

 

#4 2012-04-10 12:54:41

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Make timer halt where it's at?

Would cerating a "timer" variable work?

when i receive [stop timer v]
 set variable [timer] to (timer)
 show variable [timer]
 


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

Board footer