Discuss Scratch

kingan2030
Scratcher
9 posts

Hungry shark game

When i was testing out my game my fish didn't appear! the sprite and code was still there though. What happened? ( i shared the game but it is hungry shark medium level)
PawnMate314
Scratcher
38 posts

Hungry shark game

Hello!

I looked at your game and I believe I have found the problem.

Hide/Show blocks don’t reset automatically when you click the flag, so a simple fix would be to add this script to each of your fish sprites:

whenclickedshow

You can also use this code to make sure the fish doesn’t spawn on the shark:

gotorandom positionrepeatuntilnottouchingShark?gotorandom position

I hope you found this helpful! Have a great day!
kingan2030
Scratcher
9 posts

Hungry shark game

Thank u! I completely forgot.

Powered by DjangoBB