ChangeAnimationDirection

From Game Editor

Jump to: navigation, search
  • ChangeAnimationDirection:

Change animation state (FORWARD, BACKWARD, STOPPED).

FORWARD // Runs the animation from the first frame, 0

BACKWARD // Runs the animation from the last frame to the first

STOPPED // Changes animation to the first frame, it does not run the animation

int ChangeAnimationDirection(char *actorName, int state)

  • actorName

- "Event Actor": Actor that is receiving the current event.

- "Parent Actor": Event Actor's parent, if exists.

- "Creator Actor": Event Actor's creator, if Event Actor has been created in some "Create Actor" action.

- "Collide Actor": Actor that collided with the event Actor.

- Any Actor in game.


  • ex:

// Stop an actor's animation, Health Bar

// Create Actor -> Script Editor

ChangeAnimatonDirection("Health_Bar", STOPPED);