CreateActor

From Game Editor

Revision as of 07:49, 1 February 2009 by Skydereign (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • CreateActor:

Creates an actor


CreateActor(char *creatorName, char *animationName, char *parentName, char *pathName, int xpos, int ypos, int absolutePosition)

creatorName: Name of desired actor, any legal actor name

animationName: the animation valid for the actor creatorName or "no animation"

parentName: Name of desired parent for actor creatorName, any legal actor name

pathName: any path name (including "no path" and "random path")

x,y: the new actor's initial position

absolutePosition: true or false; true is actual xy, false is relative the the event actor


  • ex:

// Creating a projectile

// Character->KeyDown (SPACE)->Script Editor

CreateActor("fireball", "fireball", "(none)", "(none)", 0, 0, false);