Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help for my new game
- number3648
-
Scratcher
24 posts
Help for my new game
Seemingly sometimes I just die right after starting, even though I made codes that's supposed to block this from happening; can you help?
The game: https://scratch.mit.edu/projects/818315688/
The game: https://scratch.mit.edu/projects/818315688/
- supa-panda
-
Scratcher
100+ posts
Help for my new game
Because you using a “if touching black” block it will kill you because your touching respawn on the respawn button (witch is black) to fix this make the border and the text of the button a few degrees brighter. Hope this helped 
P.S. you might also want to reset the spiny bar.

P.S. you might also want to reset the spiny bar.
- medians
-
Scratcher
1000+ posts
Help for my new game

This code kills you because the restart button has the same color that you are detecting for the game over script as said above.
Also, there's an issue where objects run their code, even after you die because of the forever loop that's in there. It will never run the next code or will never stop:

This causes stuff like the money bag to show up, even after the game over.
Last edited by medians (March 14, 2023 03:33:31)
- number3648
-
Scratcher
24 posts
Help for my new game
Alr! Thank you for the help
I fixed both bugs
I fixed both bugswhen green flag clicked
wait until <(bug fixed?) = [yes!]>
forever
say [Thank you!]
end
Last edited by number3648 (March 14, 2023 05:18:40)
- Discussion Forums
- » Help with Scripts
-
» Help for my new game