Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Gordinho on January 27, 2016, 11:49:23 AM

Title: disable button on enter collider
Post by: Gordinho 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.
Title: Re: disable button on enter collider
Post by: mdotstrange 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.