Playing music while a level is loading
Waiting for a level to load on a multiplayer client can take some time, especially for large levels with a lot of content. Having music play during this downtime can help pass the time. In this recipe, we will learn how to play music while a level is loading, and how to stop the music once the level has loaded.
Getting ready
We will be making TorqueScript changes and working with the World Editor in a project based on the Torque 3D's FPS Tutorial
template, and try them out using the China Town Day
level. If you haven't already, use the Torque Project Manager (Project Manager.exe
) to create a new project from the FPS Tutorial
template; it can be found under the My Projects
directory.
How to do it...
In the following steps we will set up some music to play while the level is loading:
Start the
FPS Tutorial
game and load theChina Town Day
level.Press F11 to open World Editor; make sure the Object Editor is active (F1 or by using the Editors menu).
Go to the...