Discuss Scratch

Carmelina929
New Scratcher
3 posts

One Sprite not working properly

I cant get my one sprite to do whats commanded in script all while the other two work fine in the same forever loop. Need help please. https://scratch.mit.edu/projects/328328083

The milk carton is suppose to play the collect sound and give you one point for every one collected.

Last edited by Carmelina929 (Sept. 11, 2019 21:19:34)

Computer_Fizz
Scratcher
100+ posts

One Sprite not working properly

I think the issue is that the milk carton moves before the diver can collect it. I recommend either making the diver send a broadcast to move it, or to have the milk carton play the sound and adjust the score.
Carmelina929
New Scratcher
3 posts

One Sprite not working properly

It was working with no problem and then I added the winner section and I can't seem to get it back. I don't know what I did to make it stop playing the noise and adjusting the score. Plus the shark and octopus work just fine in the forever loop just not the milk. All three are set up the same just with different noises and points. I'm not sure what you mean by broadcast. The milk carton only moves when the diver touches it.
EZ-Games
Scratcher
1000+ posts

One Sprite not working properly

In the Milk sprite, I recommend that this script:
whenclickedshowgotorandom positionforeveriftouchingDiver2?thengotorandom position

Turns into this:
whenclickedshowgotorandom positionforeveriftouchingDiver2?thenchangeScoreby1gotorandom positionplaysoundCollectuntildone

Now, whenever the Milk sprite touches the Diver2 sprite, it should not only change the position but also change the score by one and play the Collect sound. Also, make sure to remove the “If touching Milk then …” part in one of your scripts in the Diver2 sprite so that the score won't increment by two points.
Carmelina929
New Scratcher
3 posts

One Sprite not working properly

Thank you so much! It worked!
EZ-Games
Scratcher
1000+ posts

One Sprite not working properly

Carmelina929 wrote:

Thank you so much! It worked!

Glad the problem was solved.
SetpyASD
Scratcher
51 posts

One Sprite not working properly

my warning will not be good

Powered by DjangoBB