Game Development Community

TGE side scrolling camera

by Xibz · in Torque Game Engine · 05/16/2008 (1:22 pm) · 3 replies

I was wondering if I could use torque script to do this feature? Or would I have to modify the camera.cc to achieve this?

#1
05/16/2008 (1:59 pm)
Torque script has a camera transform. Although if you want to make a side scrolling game, your better off with TGB...
#2
05/16/2008 (5:42 pm)
I think a 3D side scroller would be awesome.

Yes you can do this in script (I'm sorry I don't know how.) I think if you set the camera location on the side of your character you can use setLocation or setTransform or similar to match your character's position.

Is there a 'camera.cs' file?

Tony

sorry, I'm using my phone to post this...
#3
05/16/2008 (6:45 pm)
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5471
This should help you out. You'll want to merge only the lines of code needed for the camera tho, as it was written for tge 1.3. I do know people have got it working in tge 1.5, so it's possible.