Prevent player jump on side of platform?

Hi guys, I'm working on a platform game, sonic/mario style, and I have a problem, when my player jumps from the ground to a flying platform and collides with his side left or right my player can jump again. There is some fix for this?

Thank you!

Comments

  • yattamoveyattamove Member Posts: 236

    Hi @simon31184‌

    You could create a "mask" actor and constrain its position to the bottom of your "animation" actor. Put the collide rule on the "mask" actor, not on the "animation" actor. I know this should be done easier and more efficient but for GS that's the way to do it. It's just that it consumes more of the device's processing power because it is constantly locking-on the x and y of the "animation" actor.

Sign In or Register to comment.