Player gets stuck on collision

Mario gets stuck when he tries to jump on a top of a block

Link to the project or level: Game Lab - Code.org
What I expect to happen: Mario detects the collision with block and falls
What actually happens: Mario gets stuck and the collision isn’t detected
What I’ve tried: I have tried detecting the collision and it doesn’t work.

It looks like Mario isn’t actually affected by gravity and is instead hard-coded to return to the ground after reaching a certain point unobstructed.

Try using mario.velocityX and mario.velocityY, along with collisions, to have Mario obey the laws of physics.

@Ethan-T,

If you read the documentation for the collide block, it says this:

Makes the sprite stop when it runs into the target. If the target is moving, it will push the sprite with it. The target keeps moving as before.

You are using the collide block with Mario, so when he hits the bottom of the block, he stops. You might want to review the other types of collision and decide which one might be best for this situation.

It refers to them in the documentation linked above! If I have misunderstood the problem, let me know.

Good luck!

Mike