Game Development Community

How to create a camera hack for a Torque 2D game ?

by Anonymous · in Torque Game Engine · 07/03/2011 (7:37 am) · 2 replies

First I�m not game designer (though I have some experience in interactive 3D), I�ve been playing a Torque 3D game for some time and I think it would make a great medium for machinima. Problem is that it�s a top down view strategy game and it doesn�t give control of the camera other than pan map with arrow keys, drag with left mouse and zoom on cursor with mouse wheel.

Ideally I�d like a console command to switch between the default camera mode and the machinima one. The machinima one should focus on the centre of the map OR (toggle) on a selected unit and basically let me rotate the map like a sphere but never get below it or alter its horizontality. (hope you get the picture)

I�ve got the demo of Torque 3D and I found the documentation on creating different camera modes but I don�t want to spend hours to find out in the end that I can�t do it.
The developer gave a fix for a control so I have an example of adding a key binding to main.cs, but the camera thing I don't know how to do.

Edit: I just learned that it's a Torque 2D game that was made to appear 3D.

I'd appreciate if someone could write the code and guide me a bit on how to implement it.

P.S. I'd prefer not to mention the game's name in public.

About the author

Recent Threads


#1
07/05/2011 (7:44 pm)
This is a TGE forum, you might want to try the Torque Game Builder forum under Engines.
#2
07/05/2011 (8:00 pm)
Ok, wasn't sure where to post. Can a moderator move the thread ?