Game Development Community

Spectator Camera System?

by Ronald J Nelson · in Torque Game Engine · 05/17/2008 (10:12 pm) · 5 replies

Has anyone set up a working spectator camera system that allows you to view the game through another players eyes?

#1
05/18/2008 (4:37 am)
Ron - You're probably best looking at the Advanced Camera resource, it should be fairly simple to implement this once you have that resource in your engine.
#2
05/18/2008 (4:52 pm)
I am familiar with the Advanced camera resource. However, I really do not see it allowing you to spectate another player. As far as I can tell it is only for the player you are controlling.
#3
05/19/2008 (2:55 pm)
It won't implement what you are trying to do directly but you could modify the resource for say the tracking camera to attach the camera to another player, therefore giving you this spectate mode.

Most resources are exactly that, good starting blocks to build upon for your game
#4
05/19/2008 (4:25 pm)
That function is already in there!
if you use the %this.advCamera.setThirdPersonTargetMode(); it will allow you to set these modes, its really good camera system.

cam.setplayerobject(%player);
cam.settargetobject(%player);

with these two variables (already there) you can make some pretty cool stuff, thing is i dont know how to do much more than set these up in the game.cs so i havent gone much farther than changing cameras to vehicles and kork (ai player) threw the command line.
#5
05/19/2008 (10:24 pm)
After some thought about preventing those who like to cheat by "ghosting" in a team game I chose to make more of a spectator points of interest system.

i72.photobucket.com/albums/i192/DTDA/th_spectator.jpg