Respawning a dead actor help! :)
![Xer](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
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!
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!
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
Comments