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
SlickZeroHouston, TexasMember, Sous ChefPosts: 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...
Comments
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...