Help with timers/Pause game.

I'm currently on my first project on gamesalad, everything's okay but I seem to have a bit of trouble
with the game pause/actors.

http://arcade.gamesalad.com/game/113246 <

I currently have a pause button, which leads to another pause scene, which has an actor to go back to the initial scene.

Now the problem is I cant have another pause button (Im making an actor spawn when touch loads a bonus scene) Every
time I do it, gamesalad crashes.

Also if I add an actor to just change the scene, that works, but my timer on my initial scene stops.. and doesn't
start running again.. Help? lol

Comments

  • vipasanevipasane Member Posts: 34
    a good trick is to get timestamp from game.timer and save it to f.ex game.scenestarttime. Then you might calculate more precise time by currenttime - scenestarttime so that would be elapsedtime = game.timer - game.scenestarttime.

    When pausing a game you need need to use similar approach to keep track on how long game / scene has been paused since scenestarttime.
Sign In or Register to comment.