Game Development Community


#1
12/16/2004 (2:45 pm)
Try changing the variables in the player datablock

Quote:
cameraDefaultFov = 90.0;
cameraMinFov = 5.0;
cameraMaxFov = 120.0;
#2
12/16/2004 (3:52 pm)
By deafault you can do that ,go to 3rd person by pressing tab. . .the hold Z and move mouse the camera will rotate around player . . . .there are more advanced camera resources advailable though, do a search and I'm sure you will find something to satify you
#3
12/16/2004 (5:06 pm)
@Matt: as far as I can tell, you want the orbit mode of the Advanced Camera, so give that a shot like it looks like you are!
#4
12/16/2004 (7:29 pm)
From the resource instructions:

Quote:How to Add
First off all you need to take the attached advancedCamera.cc/h files and add to engine\game and add them to the project.

NOTE: This means the engine code itself, which will also require a recompile of your engine (which in turn requires a compiler, etc.). If until this point all you have done is work with scripting, I would suggest you research basic compilation of the engine in the TGE documentation and general research on the web for compiling/building C++ projects.
#5
12/18/2004 (2:32 am)
Matt, I needed a view similar to yours. I achieved it very simply, by changing some values in "player.cs" :
cameraMaxDist = 15;
minLookAngle = 70;
maxLookAngle = 70;
This way the camera is far, viewing from top, and its y axis is fixed. The player still rotates himself and the camera as usual on the x axis.
But next it gets tougher when your player has to shoot : the poor guy just shoots his feet ! due to the fact it's always the camera which makes the shooting line. There has been a lot of discussions about this subject ("crosshair third person"), since 2002 (!), and I did not find any working lead.
Except maybe the Thomas "Man of Ice" Lund's ClientSideTSStatic (3D crosshair in the world) and Advanced Camera resources. I did not tried them because I'm a bit short on C++ for now, and I'm not sure it solves the shooting issue.
Since my game will be a classic gun'n run viewed from top, I managed to make the player shoot horizontally with these changes in "crossbow.cs" :
%muzzleVectorPre = %obj.getMuzzleVector(%slot);
%muzzleVector0 = getword(%muzzleVectorPre, 0);
%muzzleVector1 = getword(%muzzleVectorPre, 1);
%muzzleVector2 = getword(%muzzleVectorPre, 2);
%muzzleVector = %muzzleVector0 SPC %muzzleVector1 SPC 0;
It's very basic indeed, but it suits my needs provided the terrain is not too bumpy (ie almost flat) !
#6
01/12/2005 (12:23 am)
Quote:By deafault you can do that ,go to 3rd person by pressing tab. . .the hold Z and move mouse the camera will rotate around player

Can I turn on the cursor by cursoron() and also control the rotation? This is what a typical 3D MMORPG does. Do I need to modify the engine code? Thanks.