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

#1 2010-10-23 13:55:01

izzwizz10
New Scratcher
Registered: 2010-10-23
Posts: 1

scoring

How do i get the lives to go down when my 2nd sprite is touching the 1st one ?

Offline

 

#2 2010-10-23 15:02:09

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: scoring

izzwizz10 wrote:

How do i get the lives to go down when my 2nd sprite is touching the 1st one ?

put this in sprite1
<when green flag clicked>
<forever>
<if><touching[ Sprite2
<change{ lives }by( -1
<wait until> <<  <not> <touching[ Sprite2  >>
<end>
<end>


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&amp;online=http://lemonfanatic.webs.com/ONLINE.png&amp;offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#3 2010-10-23 15:03:38

car1977
Scratcher
Registered: 2010-10-17
Posts: 20

Re: scoring

OK so make a variable called health only for sprite one. Now insert
<When flag clicked> <forever> <if>-<touching Sprite 2> <change health by -1> <go to (wherever)>

Offline

 

Board footer