How do I disable controls while not on platform?

0 favourites
  • 3 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • I have the platform behavior Jump set to my left click as well as an animation. I want disable the left click while the player is in the air or falling so it won't play the animation again if the player clicks again while not on the platform. Thanks.

  • have a boolean switch, put an instance variable on your player, like canClick.

    when clicking to jump also check if canClick = true, then when you jump set the variable to false,

    use the event On Landed to set the variable back to true

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks for the quick reply, being a Construct 2 noob I was having a bit of trouble figuring out how to check if canClick was true, I thought it would be under an action for the player, but I figured it out, I just added the Is boolean instance variable set condition to my mouse click action event. Works great now, thanks again for your help.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)