Overlap not working

Hey, i’m making a sad Mario but the overlap won’t work. Please check my code and tell me how to fix it. https://arcade.makecode.com/S31550-31826-29123-82936

Overlap code seems to be inside the “If mysprite x > 140 and teleport = true”, wich means it only happens if those conditions are met, wich is impossible since you set teleport to false after switching to the tilemap with the actual sprites you would collide with.

Maybe try having the overlap code run on a separate “forever, if teleport = false” block?

3 Likes

ok I’ll try it! thanks for the recommendation!

Also, the overlap seems to be glitching. Im a couple inches above the sprite and it kills me!

Can you share an updated link? im not sure what would cause them to do so.

Hey sorry invalid link! https://arcade.makecode.com/S31550-31826-29123-82936