how to fake 2D in TGE
by Christopher Figueroa · in Torque Game Engine · 10/26/2009 (8:00 pm) · 9 replies
I am trying to export a character so its sideways, because i'm making a side-scrolling game. When I put the Cam to the side of the character it just puts the camera way to the side of the character. How can I make this work? What do I do in 3ds max to make this work? Is there some scripting I need to do?
About the author
#2
Its more like the game Trine. Look it up on youtube. That style of 2D in a 3D environment. Sorry if I'm not giving you enough information I'm new when it comes to making this type of game but I'm not new to TGE at all.
10/27/2009 (10:07 am)
A super mario is what I'm trying to make in TGE. I don't know how to export my character to make it look like that. Any ideas? Its more like the game Trine. Look it up on youtube. That style of 2D in a 3D environment. Sorry if I'm not giving you enough information I'm new when it comes to making this type of game but I'm not new to TGE at all.
#3
10/27/2009 (10:58 am)
There's no special way to export to get this kind of effect. This is something you'll need to script out. A 2D game is just the camera locked into one view with movement locked to only two axes.
#4
10/27/2009 (11:01 am)
There's an advanced camera resource here. Looks like the "third person track mode" could do what you want - it mounts the camera at your model's "cam" node (just like always) but instead of looking in the direction the player is facing, you can assign a "target" object that the camera will look at.
#5
10/27/2009 (12:06 pm)
yea, you're gonna have to remove movement from either the x or y axis.
#6
10/27/2009 (12:13 pm)
Yeah I was just thinking there would be an easy way to change the camera rather then how that resource Sherman provided. I figured I would remove x and y axis movement. Is there an easier way to do it?
#7
(It was based on TGE, after all!)
Or are you talking about exporting from the 3D modelling program?
10/27/2009 (12:42 pm)
Well...the *easiest* way is to use TGB ;)(It was based on TGE, after all!)
Or are you talking about exporting from the 3D modelling program?
#8
10/27/2009 (12:45 pm)
Yes using TGB would be the easiest way but what fun is that! :P I just want to try and create a "Trine" type of game in TGE. If you don't know what that game is. Look it up!
#9
1. in 3dmax move the node cam to the side and face the model, then in game use third person.
2. use an isometric camera and adjust the offset, check my resources.
10/27/2009 (2:01 pm)
try this: 1. in 3dmax move the node cam to the side and face the model, then in game use third person.
2. use an isometric camera and adjust the offset, check my resources.
Torque Owner Richard Preziosi
WinterLeaf Entertainment