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

#1 2008-06-26 18:29:56

SLK
Scratcher
Registered: 2008-06-15
Posts: 20

Sprite Dies

What are the codes for making the hero sprite touch bad guys and then the hero dies?

I tried when hero touches bad guy, but not sure in what order, what variables to use etc. Does anyone have the exact coding?

Thanks

Offline

 

#2 2008-06-26 18:33:02

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Sprite Dies

Umm... couldn't you just use costumes and broadcast dead?


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-06-26 22:49:22

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Sprite Dies

This works:
First make a Lives Variable
Now Put a script on your "bad guy" :
<when green flag clicked>
<if><touching[ Enemy ]>
<change{ Lives }by( -1 ) >
<glide( 1 )secs to x sad  Starting Position )y sad  Starting position ) >
<end>
Now if you touch it it will make your sprite lose a "life" and go to whatever position you specify.

Offline

 

Board footer