Discuss Scratch

PeenuttMan
Scratcher
6 posts

Score Help

Hello whoever is reading this, I made a game, https://scratch.mit.edu/projects/670664121/, and i can’t seem to figure out why the score doesn’t update by only 5 and the cloud ghost whacked by 1, i tried using wait until, no results.

Thanks in advance
awesome-llama
Scratcher
1000+ posts

Score Help

The issue is that the clone script is able to loop multiple times due to all the booleans being the same. When it is true, there's nothing stopping the score from incrementing as fast as the forever loop runs (except for the repeat 2 block which does add a tiny bit of delay).



What you need to do is change these blocks. The first thing to do is remove many as you really don't need to check the same thing multiple times.

This script functions the same as the one you had:



Finally, to make sure the looping issue doesn't happen, you can check for the opposite of this boolean. Add a wait until block at the bottom but add a “not” block:

PeenuttMan
Scratcher
6 posts

Score Help

I tried this, it still doesn’t work
awesome-llama
Scratcher
1000+ posts

Score Help

PeenuttMan wrote:

I tried this, it still doesn’t work
Am I not understanding the issue correctly? I had a look again at your project and what I thought you had an issue with (the variable not changing by 5 once) seems to be now fixed.

Powered by DjangoBB