Timer delay before spawn?
Hi, I seem to be really struggling with the use of timers.
Quite simply I have an actor (X) setup so that when it collides with another actor > destroy X > Timer for 2 seconds > Respawn X at coordinates...
It doesn't work, X doesn't respawn. Without the timer X spawns fine, but without the delay I want. What am I doing wrong?
Quite simply I have an actor (X) setup so that when it collides with another actor > destroy X > Timer for 2 seconds > Respawn X at coordinates...
It doesn't work, X doesn't respawn. Without the timer X spawns fine, but without the delay I want. What am I doing wrong?
Comments
This the structure of my Rule:
RULE > When Actor receives event: overlaps or collides: with: Actor2
> Destroy this actor
>Timer: after 2 seconds (run to completion) > Spawn actor
ActorIsDead <-Bool
On your actor
Rule When Collide with actor 2
->ActorIsDead = true
->destroy actor
Either place a blank actor or doubleclick one of your BG and unlock it. On that Place a rule which will spawn the actor 1.
Rule when game.ActorIsDead = True
Timer after 2 secs
->spawn Actor1 to whatever coordinates you want
->ActorIsDead = false
Rule -
Actor X collides with whatever
Change attribute: self.color.alpha To: 0
Timer After 2sec. Spawn new Actor
Then 2nd rule inside Timer -- Destroy Actor
Above you seem to be destroying the actor before the timer can even begin
hence why it's not working.
Storm