Game Development Community

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).

www.matthughson.com/images/blog%20images/darkstorm_proto01.jpg
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.

www.matthughson.com/images/blog%20images/darkstorm01.jpg

#1
03/03/2006 (8:45 pm)
Well I saw a demo using TGE that had fully functional Abuse style controls, and I think what they did was have the player "look at" the relative position of the mouse cursor. The built in code will a properly setup player model face up and down and aim towards where you are pointing (the demo did this) and it looked really good.
#2
03/03/2006 (8:50 pm)
You don't know what that game was called do you? A link would be even better :D

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
#3
03/07/2006 (7:37 pm)
/Bump

Still looking for insight.