How to re-spawn an actor

MRZOOMANMRZOOMAN Member Posts: 5
edited February 2015 in Working with GS (Mac)

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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    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.

  • MRZOOMANMRZOOMAN Member Posts: 5

    can you give me the steps please ?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    When [condition for scoring a goal]
    .....Spawn Actor [actor name] at [x=____] [y=_____] relative to scene
    .....Destroy Actor

  • MRZOOMANMRZOOMAN Member Posts: 5

    What is a condition ?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    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.

Sign In or Register to comment.