Changing Scene with a timer not working
evilz29
Member Posts: 13
Hello,
I have a scene where as you kill enemies, an integer drops -1, and when it hits 0, the scene is supposed to change.
I have it so
When Attribute game.enemy = 0
Timer - After 2 Seconds
Change Scene: Level 2
The scene change works without the timer, but I would like to have a timer because I want the screen to fade to black before the level changes.
Does anyone know why my timer is not working?
Thanks!!
-Andrew
I have a scene where as you kill enemies, an integer drops -1, and when it hits 0, the scene is supposed to change.
I have it so
When Attribute game.enemy = 0
Timer - After 2 Seconds
Change Scene: Level 2
The scene change works without the timer, but I would like to have a timer because I want the screen to fade to black before the level changes.
Does anyone know why my timer is not working?
Thanks!!
-Andrew
Comments
When Att game.enemy is at 0 it will do the timer. If its more or less than 0 its not going to.
So if you have it at 0 and you kill another enemy it will go to -1
Id do a check,
if Att game.enemy (lessthan) 0 then game.enemy = 0
Also, as firemaple said have Run To Completion checked.
Thanks so much!