Go to "You're dead" scene right away?

8022apple

  • Posts: 19
In my game "Break Out", if your remaining lives = 0, you'll die. But the game will still play for a little bit, then move to the fail screen. I tried to set the time when lives = 0, switch to fail screen after 0.01s but it doesn't work, can anyone help me, please? Thank you

gplar

  • Posts: 1115
Probably depends on where you test for the lives=0. Stick it in an "Updated" event and it gets checked 60 times a second. Or trigger directly from where you decrease lives.

Xietao

  • Posts: 725
Probably depends on where you test for the lives=0. Stick it in an "Updated" event and it gets checked 60 times a second. Or trigger directly from where you decrease lives.
Not :P
Code: [Select]
always
  if <[y] of [Self] >= [scene width (pixels]
   if <<not<scene is transitioning>>>
     if <[Lives] > [1]>
         set Lives to [[Lives - [1]]
          reload...
     otherwise
          set Lives to [[Lives - [1]]
          switch scene

« Last Edit: July 04, 2012, 09:19:08 am by Xietao »
Free Time:
Monday, Wednesday, Friday: 13h
Tuesday, Thursday, Saturday, Sunday: 7h
Loving Linux...