Disable button
Hi,
How can i disable an actor (it's a button) ??? And after an action Rehabilitate the actor???
Thanks everyone
How can i disable an actor (it's a button) ??? And after an action Rehabilitate the actor???
Thanks everyone
Comments
Below is the answer
and when you want to rehabilitate: changeAttribute: self.Position.Y To: on-scenePosition.Y
faster/smoother than destroy/spawn
@};- MH
EDIT: if you want the button to stay on-screen, but inactive, changeAttribute: self.Color.Alpha To: 0.5
then when rehabilitating changeAttribute: self.Color.Alpha To: 1
and on your touched is pressed Rule: add condition to check the alpha state
Rule: when (All)
Event: touch is pressed
Attribute: self.Color.Alpha = 1
--do this