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:25:15

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

Three Lives & Game Over

What are the codes/blocks for Game Over?

e.g. if Sprite 1 touches bad guy, make Sprite 1 die and STOP ALL, and display Game Over?


Also, with 3 Lives, does anyone have a code order for that? How to make the Sprite 1 have 3 lives, lose 3 lives, then display Game Over?

Thanks

Offline

 

#2 2008-06-26 18:28:27

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

Re: Three Lives & Game Over

Use the broadcast and hide systems


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 23:54:48

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

Re: Three Lives & Game Over

Okay here is what i'd first go to stage  and make a game over background and then go to scripts now:
[blocks]
<when green flag clicked>
<forever>
<if><( <{ Lives }> <<> 1 > )
<switch to costume[ (if your on stage, this will be switch to background)GameoverBckgrd.
<stop all>
<end>
<stop script>
This makes it so that if you have less than
1 life you see a gameover background (you create) and everything stops.

Offline

 

Board footer