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

#1 2012-03-05 16:53:02

iweagles
New Scratcher
Registered: 2012-03-05
Posts: 4

Stoping my timer

I have a game and i want my timer to stop when one sprite touches an other! Please help! Im new to this!

Offline

 

#2 2012-03-05 16:56:07

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Stoping my timer

use this

when gf clicked
forever
if touching sprite
stop all
end

Last edited by coolhogs (2012-03-05 16:56:57)


Get ready for domination of:  tongue

Offline

 

#3 2012-03-05 17:03:29

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Stoping my timer

Actually, the "stop all" block doesn't stop the timer.  What you'll want is something like this:

When gf clicked
repeat until <touching [sprite1]?>
set [display-timer] to (timer)
end


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#4 2012-03-05 17:04:46

iweagles
New Scratcher
Registered: 2012-03-05
Posts: 4

Re: Stoping my timer

Thanks, that worked!

Offline

 

Board footer