ChangeTransparency

From Game Editor

Revision as of 17:55, 6 January 2009 by Skydereign (Talk | contribs)
Jump to: navigation, search
  • ChangeTransparency:

Change Actor transparency (0.0 - opaque, to 1.0 - transparent).

int ChangeTransparency(char *actorName, double transp)

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

// Making actor wall semi-transparent when the player is behind it

// Script Editor: wall -> Collision (Any Side of player)

ChangeTransparency("Event Actor", 0.85);