Respawning a dead actor help! :)

XerXer Member Posts: 6
edited November -1 in Working with GS (Mac)
Hi, I'm new to Gamesalad. Working on a cinematic/graphically polished shooter for my first go-around. I have a problem however.

I have an enemy that has 20 health represented by an integer attribute. Lets call him GUNNER

I have a spawner that generates this enemy. Lets call him SPAWNER.

I had GUNNER set up like this:

when GUNNER health = 0
Destroy actor

----

For Spawner:

When Gunner health = 0
Change Gunner health = 20 after 1 second.
Spawn Gunner here after 2 second.

I manually placed GUNNER in the scene, turned on the demo and destroyed it, hoping it would respawn according to the above.

GUNNER pops up for a quick second at SPAWNER and disappears as quickly as he arrived. I'm guessing that the health attribute is not changing, but i don't know why!

I want to have several GUNNER actors appear in each level (one at a time), but I don't want to go through creating GUNNER1, GUNNER2, 3, 4 etc etc. Is there a way for me to revive the same actor above or am I better off tediously making each one by one?

Thanks very much in advance! :)

Comments

  • XerXer Member Posts: 6
    Thank you, Mr. Booth! Next time I am at the computer I will let you know how it went. :)
  • XerXer Member Posts: 6
    Mr. Booth, just checking back to let you know that your advice was very helpful. Thank you very much! :D
Sign In or Register to comment.