One Click, One Move and Stop??
vittix
Member Posts: 5
Hello, can someone help me, please? I set my actor to move like this:
Actor receives event touch is pressed
Change Attribute self.Position.X to self.PositionX-50
My actor moves to the left on my screen, and that's what I want. But I click again, and he moves the same distance, and so on. How can I make him stop moving after that one click?
Thanks.
Best Answer
-
tatiang Posts: 11,949
When [all] Touch is Pressed AND Attribute self.Moved is false
Change Attribute self.Position.X to self.Position.X-50
Change Attribute self.Moved (boolean) to trueNew to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
Thanks so much!