ChangeZDepth

From Game Editor

Jump to: navigation, search
  • ChangeZDepth:

This changes the zdepth of a given actor


int ChangeZDepth(char *actorName, double zdepth)

zdepth: 0.0 to 1.0 : 1 is closest to the screen, 0 is farthest

  • actorName

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

- "Parent Actor": Event Actor's parent, if actor has a parent.

- "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:

// Moving a card from the top of the deck to the bottom

// Card->Mouse Button Down->Script Editor

ChangeZDepth("Event Actor", 0.00);