playMaker

Author Topic: disable button on enter collider  (Read 1233 times)

Gordinho

  • Playmaker Newbie
  • *
  • Posts: 9
disable button on enter collider
« on: January 27, 2016, 11:49:23 AM »
Hello,
Can anyone help me with this. Imagine you´re making a flappy bird clone and you want to stop the player from jumping when it reaches a certain height oh the screen.
I imagine that I would need an action that says when enter collider, turn off the button and when exit collider turn on button.
Is there an action to do this?.
Thanks.

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: disable button on enter collider
« Reply #1 on: January 28, 2016, 03:43:38 AM »
I don't know about an action that turns a button off but you could have a state that accepts input and another that doesn't- then use a global transition to switch between the two- that would allow you to control when the user input works and when it doesn't.
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!