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

#1 2013-03-19 13:21:14

Some_guy2
New Scratcher
Registered: 2013-03-13
Posts: 1

Win Loss Logic

how do you script something to display another sprite to pop up and say "you win" or "you lose" when something is achieved or not achieved ?

Offline

 

#2 2013-03-19 13:26:18

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Win Loss Logic

Well, you can use a variable that's called: "GameOver?", and then say this:

when i receive [Game Done v]
forever
if < (GameOver?) = [yes] >
broadcast [Lose v]
else
broadcast [win v]
end

That's a very simple example, but the logic can be applied to other things aswell.


Regards,

CAA14

Offline

 

Board footer