Discuss Scratch

EmeraldWhale
Scratcher
54 posts

I did everything right...

I did everything the scratch tips told me to do, but I still can't keep score properly. What's wrong?
It looks like this:

When flag pressed:
Set score to 0
| Forever
| | If touching Sprite1? than:
| | Change score by 1
| | Play sound Chomp until done
| |——————————————–
| ———————————————
deck26
Scratcher
1000+ posts

I did everything right...

So what's the problem? Does it not work at all or does the score change more than expected? If the latter the forever loop is going faster than you've realised so each touch changes the score multiple times. Sharing the project makes it easier for us to help as does giving details of what is happening rather than just saying it doesn't work properly.
EmeraldWhale
Scratcher
54 posts

I did everything right...

Ill share it…

And the score works and doesn't work at random times…
EmeraldWhale
Scratcher
54 posts

I did everything right...

Oh yeah! It's called The Emerald Whale Game. (I know, so creative)
lbruns
Scratcher
500+ posts

I did everything right...

EmeraldWhale wrote:

Oh yeah! It's called The Emerald Whale Game. (I know, so creative)

I found your problem. The krill is moving too fast for the whale to sense it. in your Krill script in your if touch game whale before the setx and y to random stuff put wait 0.1 seconds. Should Work!
EmeraldWhale
Scratcher
54 posts

I did everything right...

Thanks!

Powered by DjangoBB