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

#1 2012-12-20 05:38:26

iEcoWarrioR
New Scratcher
Registered: 2012-12-18
Posts: 20

how do I reset my game at 0 lifes?

So I am busy making a small game, but there is one thing that I don't know.
So I am asking it here, how do I make that my variable 'lifes', if it reaches 0 resets the game? I tried a lot of things but none of them worked.
Thanks for your help

Offline

 

#2 2012-12-20 05:55:08

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Re: how do I reset my game at 0 lifes?

iEcoWarrioR wrote:

So I am busy making a small game, but there is one thing that I don't know.
So I am asking it here, how do I make that my variable 'lifes', if it reaches 0 resets the game? I tried a lot of things but none of them worked.
Thanks for your help

when gf clicked
wait untill (lives )=(0)  
Stop all.
end
Just click the green flag to restart.

Last edited by fillergames (2012-12-20 05:58:51)


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#3 2012-12-20 06:03:19

iEcoWarrioR
New Scratcher
Registered: 2012-12-18
Posts: 20

Re: how do I reset my game at 0 lifes?

fillergames wrote:

iEcoWarrioR wrote:

So I am busy making a small game, but there is one thing that I don't know.
So I am asking it here, how do I make that my variable 'lifes', if it reaches 0 resets the game? I tried a lot of things but none of them worked.
Thanks for your help

when gf clicked
wait untill (lives )=(0)  
Stop all.
end
Just click the green flag to restart.

thanks  tongue

Offline

 

#4 2012-12-20 06:59:09

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Re: how do I reset my game at 0 lifes?

iEcoWarrioR wrote:

fillergames wrote:

iEcoWarrioR wrote:

So I am busy making a small game, but there is one thing that I don't know.
So I am asking it here, how do I make that my variable 'lifes', if it reaches 0 resets the game? I tried a lot of things but none of them worked.
Thanks for your help

when gf clicked
wait untill (lives )=(0)  
Stop all.
end
Just click the green flag to restart.

thanks  tongue

Welcome.


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#5 2012-12-20 22:41:32

destructo-serpent
Scratcher
Registered: 2012-07-25
Posts: 1000+

Re: how do I reset my game at 0 lifes?

or make a broadcast called green flag or whatever, then make it broadcast that when the gf is glicked, and duplicate every script that starts with when gf clicked, change the gf cliked to when i receive green flag, and make it so that when the lives reach zero it broadcast that again.

Offline

 

Board footer