Joystick controled actor animations

HaleyFHaleyF Member Posts: 7
edited April 2012 in Working with GS (Mac)
Hey guys. I created a joystick for my actor based on the CodeMonkey one. I was wondering if there was a way to create a specific animation when the actor is flying around in a particular direction. For instance when he's heading down, a tiny parachute will appear, etc, etc.

Best Answer

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    Sure. Inside of the rule that determine downward movement, add a change attribute (e.g. boolean) game.FlyingDown to true. Then on your flying actor, have a rule that says When game.FlyingDown is true [animate or spawn actor]. You'll need to toggle game.FlyingDown to false when the actor is no longer heading downward.

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

Sign In or Register to comment.