Game Development Community

Resolved-Pacman Problems

by Christian Rademan · in Torque Game Builder · 10/10/2007 (1:22 am) · 1 replies

I am still confused about scheduling.
I want to pause the game after the entire level has loaded and display a "READY." text message.
Then remove the message and unpause the game.
The problem is that if I schedule a pause event too late then stuff has already started moving in the level because I use onlevelLoaded to start the movement.
Too early and not all of the game objects have been loaded yet.
How can I check if the entire level has been loaded?
Or should I not use OnlevelLoaded and then just issue a start or move command to all my game objects?

#1
10/10/2007 (2:56 pm)
How about you just run the pause *before* you start the movement? i.e

function onLevelLoaded()
{
    pauseGame();
}

function pauseGame()
{
    //pause
}

function upPauseGame()
{
    //unpause
    startMovement();
}