Game Development Community

God Mode

by Germain Bataille · in Torque Game Engine · 04/12/2005 (10:44 am) · 3 replies

Hi,

I'm new with this engine... The first thing I would like to do is the possibility to go in god view after pressing tab for example...

There is a link a user told me at : http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5471

I tried 3 times to copy and paste the code in the program and it's not working...

I have the AdvanceCamera class in my code and I copied all the scripts...

If you already done this, could you please send me the .cs files please?

GB

#1
04/12/2005 (11:06 am)
You're getting God View and God Mode mixed up. Or else you're using the terms interchangably. God View is a top-down view from the camera. God Mode is a game state where the player doesn't take damage.

Well, I've never thought to do it, but if you create a global GodMode variable and ignore any player damage when it's active, you'll have God Mode.

If you're looking for God View, then take the advanced camera resource, add it into your project and recompile. Then add in the other relevant code from the resource. After that, use the script API ( %this.advCamera.setGodViewMode();) to setup the camera.
#2
04/12/2005 (11:38 am)
Sorry, I was talking about God View.

In wich script should I put the

%this.advCamera.setGodViewMode();?
#3
04/14/2005 (7:28 am)
That's working now...

What was missing is :

%this.advCamera.setPlayerObject(%player);
%this.setCameraObject(%this.advCamera);
%this.advCamera.setGodViewMode();

at the end of GameConnection::onClientEnterGame(%this)

Germ