Game Development Community

On Game Start - Init Camera - No Player

by StormEc · in General Discussion · 09/18/2004 (4:24 am) · 6 replies

Greetings

in the torque demo where they show off the engine, they start the game from a sky camera looking down on the town.

If i start a new mission, and enter it, a player is created.

how can i start on an empty mission with a camera sitting in the sky?

My game is more on controlling ai bots than fps..

cheers

#1
09/18/2004 (4:32 am)
The player is created in server/scripts/game.cs as well as the observer camera, etc. Functions of interest are spawnPlayer() and createPlayer(). If I'm remembering right, you probably only need to change spawnPlayer() to not create a player and set the control objet to the camera.

Poke around in that file, also have a look through the demo scripts (as in the demo directory, not starter.fps), all the source for the demo is in there so you can figure out how that was done.

There are also some camera related resources that are worth a look and will probably more along the lines of what you want. Check out the Advanced Camera resource.

T.
#2
09/18/2004 (5:22 am)
// Create a player object.
//%this.spawnPlayer();

Commented this out

load the game, it gets stuck on "loading objects"

Wont enter game.

Help ....
#3
09/18/2004 (8:08 am)
%this.setControlObject(%this.camera);

Fixed this

Thanx Guys ... n Girls !!
#4
09/18/2004 (1:25 pm)
You mean this:

http://www.garagegames.com/mg/forums/result.thread.php?qt=15425
#5
09/19/2004 (5:36 am)
Thanks, now here the big one, to have the mouse pointer active in the gui while the camera works in the background...

cheers
#6
09/20/2004 (5:11 pm)
I need to know this too!

Thanks!