One Click, One Move and Stop??

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

  • tatiangtatiang Posts: 11,949
    Accepted Answer

    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 true

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Answers

Sign In or Register to comment.