2

How do I halt the program while the question isn't answered (collision with stars)? I've tried the stop all block from control, but it exterminates the program. Scratch

Dusernajder
  • 101
  • 1
  • 14

1 Answers1

1

If someone has this problem, I was able to get it done by making a variable set to 0 and if an event happened, when I needed to stop the game running, I set that variable 1, like in one of my Star sprites: enter image description here

In the Rock sprite, I am checking every loop, if that variable is equals to 0, than the code can go on running: enter image description here

Dusernajder
  • 101
  • 1
  • 14