How Would YOU Approach This? w/Screens
by Matt Hughson · in Torque Game Engine · 03/03/2006 (7:55 pm) · 3 replies
Hey All,
I'm new to the engine (got it last weekend) and I am curious how more experienced people would implement this feature:
For background, we are making a 2.5D platforming shooter (a la Contra) with TGE. It controls like the game Abuse (if you've ever played it): 'A' moves left, 'D' moves right, and space jumps. You have a reticule on the screen that is locked to the 2D plane that the player is locked to, and it is moved with the mouse. Here's a screen of our prototype running on our own engine (before we switched to TGE).

Anyway, things are going well, but I am unsure of how to approach the targeting and shooting. In our old engine I just placed an object in the world, and the mouse moved that object. When the user pressed 'fire', I would get a vector from the player to the object, and fire a bullet along that vector.
Does this sound like the most reasonable approach using Torque? One of my goals with this game is to work with the engine, not around it. I want to really leverage the technology that is there, so I'm hoping someone here can tell me of other approaches to the problem.
And just for good measure, here is what the game is looking like so far.

I'm new to the engine (got it last weekend) and I am curious how more experienced people would implement this feature:
For background, we are making a 2.5D platforming shooter (a la Contra) with TGE. It controls like the game Abuse (if you've ever played it): 'A' moves left, 'D' moves right, and space jumps. You have a reticule on the screen that is locked to the 2D plane that the player is locked to, and it is moved with the mouse. Here's a screen of our prototype running on our own engine (before we switched to TGE).

Anyway, things are going well, but I am unsure of how to approach the targeting and shooting. In our old engine I just placed an object in the world, and the mouse moved that object. When the user pressed 'fire', I would get a vector from the player to the object, and fire a bullet along that vector.
Does this sound like the most reasonable approach using Torque? One of my goals with this game is to work with the engine, not around it. I want to really leverage the technology that is there, so I'm hoping someone here can tell me of other approaches to the problem.
And just for good measure, here is what the game is looking like so far.

#2
So, sorry, I'm not reading that last sentance too well; are you saying they added code to handle this, or the engine had it built in?
Thanks!
Matt
03/03/2006 (8:50 pm)
You don't know what that game was called do you? A link would be even better :DSo, sorry, I'm not reading that last sentance too well; are you saying they added code to handle this, or the engine had it built in?
Thanks!
Matt
Torque Owner Paul /*Wedge*/ DElia