How to re-spawn an actor
MRZOOMAN
Member Posts: 5
i have a hockey game it's working fine but the only problem is when i score a goal so when i do score a goal the ball destroy it self (disappear) and i don't know how to re-spawn it (i want the ball to spawn in the middle every time a player score a goal)
so if you can please help me.
sorry for my bad english
Comments
Have you considered just moving the actor to it's original position? If you do need to re-spawn an actor, then use another actor with a Spawn Actor behavior inside of a rule that has a condition that gets triggered when you score a goal.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
can you give me the steps please ?
When [condition for scoring a goal]
.....Spawn Actor [actor name] at [x=____] [y=_____] relative to scene
.....Destroy Actor
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
What is a condition ?
Actor rules require a condition. Read more about them here: http://www.cs.utah.edu/~germain/PPS/Topics/conditionals.html. I would suggest going through the GameSalad Cookbook as well to familiarize yourself with how things work.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User