spawn an actor
integr96
Member Posts: 8
How do I get an actor to spawn from my character selection screen to the first level?
Comments
Darren.
Darren.
It was a quick demo so I reused one actor (which is good practise tbh), see the rules by double clicking the actors in the scene.
Darren.
When Touch is Pressed --> Change Attribute game.hero to 1 [or 2, or 3, or self.myNumber if you want to use an attribute].
On the first level (or any level), in the hero actor, have the behavior (no rule) listed at the top of the rules area:
When [attribute] game.hero=1 --> Change Image [and whatever other rules you want]
When [attribute] game.hero=2 --> Change Image [and whatever other rules you want]
When [attribute] game.hero=3 --> Change Image [and whatever other rules you want]
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User