Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do i make a game with an automatic restart?
- Zoetheames
-
40 posts
How do i make a game with an automatic restart?
I made a clicker game with levels, and a variable as the population, and when the variable is set to 0, the game restarts, but when it restarts, it doesn't bring you to the second level. how do I fix this?
the code inside the object you're clicking with the variable:
the code inside the object you're clicking with the variable:
when green flag clicked
forever
if <(population) = [0]> then
broadcast [win v]
stop [this script v]
end
end
- Oisthebestletter
-
100+ posts
How do i make a game with an automatic restart?
Maybe instead of
<(var) = [0]>Do:
<(var) < [1]>
- Zoetheames
-
40 posts
How do i make a game with an automatic restart?
well, i tried that (im using turbowarp) and it didn't atuomatically restart, but thanks for the tip!
- Discussion Forums
- » Help with Scripts
-
» How do i make a game with an automatic restart?