Game Development Community

T3D Scroller

by Micheal Brock · in Torque 3D Beginner · 07/09/2015 (4:12 pm) · 1 replies

I am not new to t3d but not a professional by any means, having worked on a few projects and one of which is in the addons section. I am here today to find out if anyone could shed some light on using t3d as a side scroller. Something similar to castle crashers style. I've seen the rts and rpg camera setups but nothing to really point me in the right direction of how to do this on t3d. I know t2d is out there but I very much like how 3d works. This is going to be the first project I head off on my own so I have quite a bit to learn but fromy experiences you guys have always been the supporting bunch. Thanks in advance!

About the author

Worked with Ignition Games on projects Mach and Heart of the Battle and now am off on my own to bring a story never before done :)

Recent Threads


#1
07/10/2015 (8:57 pm)
Hi Micheal, read through this:
www.garagegames.com/community/forums/viewthread/138313

I just tried it and it seemed to work without the audio problem he described.

The following code from that post was written by Matt Giffels.

In game/scripts/server

Open gameDM.cs

Find: function DeathMatchGame::onClientEnterGame(%game, %client)

under: parent::onClientEnterGame(%game, %client);

add these lines:
localClientConnection.camera.setOrbitObject(localClientConnection.player, "0 0 " @ -mDegToRad(90), 15, 25, 25, true, "0 0 2", true);  
   localClientConnection.setCameraObject(LocalClientConnection.camera);  
   localClientConnection.setControlObject(LocalClientConnection.player);  
   serverConnection.setFirstPerson(false);


Then you will need to only make forward and backward work in default.bind.cs. Which you would most likely change anyway.

Hope that helps.