Running code on create

imagremlinimagremlin Member Posts: 4
edited December 2011 in Working with GS (Mac)
I want some instructions executed once when an actor is created. How is this accomplished? (I'm used to events such as OnCreate, OnDestroy)

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    just drop the behavior that you want to run that one time inside the actor. The script will run each time the actor spawns on the stage.

    And in place of OnCreate, OnDestroy…GameSalad uses rules and behaviors that are tied to events. When touch is pressed, or when actor collides, or when attribute equals, and even device tilting, etc...
Sign In or Register to comment.