Changing Scene with a timer not working

evilz29evilz29 Member Posts: 13
edited November -1 in Working with GS (Mac)
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

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    one thing,,,make sure Run To Completion is checked...
  • dereklaruedereklarue Member Posts: 121
    Well, For one..
    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. :)
  • evilz29evilz29 Member Posts: 13
    I changed it to <1 instead of = 0 and I think it fixed it!

    Thanks so much!
Sign In or Register to comment.