Game Development Community

Grouping sceneobjects - best method?

by Jakob Berglund Rogert · in Torque Game Builder · 12/13/2010 (9:03 pm) · 3 replies

Hello!

I'm building a spaceshooter featuring a huge, player controlled ship - the ship in question is made up of many different modules, which in turn are made up of many different components. These components are different t2dSceneObjects. Since I want all the parts to move together whenever the ship thrusts forward into the galaxy, I would prefer some way of grouping them. I though making a t2DsceneObjectSet would solve the issue, but that class does not feature "linearvelocity". In flash, I would just put all modules into a movieclip and thrust the single movieclip forward, but is there a proper way to do this in torque?
(I have considered mounting stuff, but that sounds like a huge amount of mounting.)

The reason for all these modules is that the players should be able to pick different modules and interact with stuff inside the ship. In the end this sounds like something that should be very doable, but somehow it has escaped my mind.

Best Regards and Much Thankful for any hints!
Jakob

#1
12/14/2010 (4:54 am)
Move the camera rather than the ship and it's components?
#2
12/14/2010 (5:33 pm)
Thank you for the reply, Timi. I already considered that, but since the surrounding space will include individually moving, equally huge, space ships and asteroids, just moving the background (I presume you do mean that I move the background and surrounding terrain, not the actual camera.) won't help me. This is a four player split-screen game which also means that there will be cameras tied to each individual character, rather than tied to the space ship. The ship is more like a huge, procedurally generated level.
#3
12/15/2010 (12:59 am)
I guess I wasn't picturing your game properly then. I thought you meant more of the StarFox 64 level end style thrusting forward into the galaxy.
I did actually mean move the camera, not the background. But I guess it doesn't work for how you've got your game going.