Detecting Player is on Ground?

SnakeKiller

  • Posts: 29
I have an idea for a platformer game, and I am hoping to purchase the Studio version of Stencyl.
I am a newbie at this, but I have a lot of experience in c++ game programming.

I want the player to be able to run,  jump, hit, and shoot things. I know there are a lot of behaviors I can use,  but whenever I want to create my own behavior,  the  other behaviors would cancel out the animation I want to use. I can do everything from scratch, but I want to figure out how to detect if the player is on the ground. In c++ programming I know that you can move the player's Y position to make it jump, and you can detect the  player is on the ground when the Y value stops changing and the player collides at the top a tile.

How can I do that in Stencyl?

sorecactus

  • Posts: 31
I think this is how they do it in the jump and run behavior.

SnakeKiller

  • Posts: 29
Got it, Thanks.