Scene change happens before explosion happens

jschultzjrjschultzjr Member Posts: 1
edited August 2012 in Working with GS (Mac)
Making a space invaders type game. when I change scene to a boss scene Instead of the last invader being shot showing an explosion animation and explosion sound it jumps instantly to the boss scene before finishing explosion, etc. I have tried using timer to wait before change scene command and timers for explosions etc. but nothing works....any advice?

Answers

  • scrapee_netscrapee_net Member Posts: 424
    edited August 2012
    do something like this:

    Create a boolean game attribute called level-complete for example, and setted to false by default. When all the enemies were destroyed, change its value to true.

    when level-complete == true
    after X seconds
    change scene

    it this doesnt work, it might a gamesalad bug.
  • jschultzjrjschultzjr Member Posts: 1
    Its strange. Its a weird buggy part of game salad unless I am missing something....if I do the delay above, and throw in a timer....it skips the scene change entirely. The explosions work now, but the scene doesn't change. So I now have:

    when level complete=true
    after 2 seconds
    change scene

    and I see explosions perfectly but no scene change......I've spent almost as much time trying to fix this as I have making the entire program. What am I missing?

  • ORBZORBZ Member Posts: 1,304
    @jschultzjr

    if the logic you have above is as you say it is then the only logical conclusion is that level_complete is not true

    put a log debugging statement behavior in there and see if it gets triggered.
Sign In or Register to comment.