Upon Overlap Game "Should be" Over

When the shark overlaps with hero the game is supposed to be over; however, it doesn’t seem to be working. Is it because the shark isn’t overlapping all the way over hero? If so, how does my student fix it. We can’t seem to figure it out. Seems like it would be the “change x/y by __” block, but that doesn’t seem to be working. https://arcade.makecode.com/#editor

you need to post the actual link to the game, otherwise, we won’t have access to the game. What you posted was a link to the editor. you can do this by sharing the game in the top left corner.

Have you tried changing the shark’s sprite type to (Enemy) and then put an (if sprite of kind player overlaps with sprite of kind enemy) block then (game over = on).

I also doubt there is anything to do with the (change x/y by ) block, as sprites overlap the each other the moment they make contact (this may not be true, but this is from what I’ve experienced).

Sorry about that! https://makecode.com/_TivP4tHo5RyV. Thanks for your help. I am new to this and trying to help my students.

Ah, looks like you mixed up the overlaps blocks!

This code here:

Is checking for overlaps between a sprite and a tile, not a sprite and a sprite.

You want to check for overlaps between two sprites, and the best way to do that is to use the overlaps event in the sprites category like this: