How to make actor respond only after collision is detected?

Hi,
Can't seem to get the commands right. I'm trying to make my actor move once only according to user's swipe after it collide or lands on the ground. Currently, my actor can be moved many times before it lands on the ground. Pls help.......
Thanks.

Comments

  • GSlostsoulGSlostsoul Member Posts: 22

    I tried creating a boolean attribute and add to the controls but still could not figure it out....

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Yes, a boolean would be the way to go. When the actor collides with the ground, change a boolean value to true. In the actor's swipe rule, add the condition that the boolean is true and make sure it is set to ALL conditions rather than ANY conditions.

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

  • GSlostsoulGSlostsoul Member Posts: 22

    Thank U. I got it.

Sign In or Register to comment.