Game Development Community

Help creating a fusion of PlayerData and VehicleData

by Keith Killilea · in Torque Game Engine · 07/07/2004 (10:30 am) · 5 replies

Hi guys, I'm sorta new with the engine but I intend to make headway.
Anyway, the main thing I'm focusing on right now is trying to create a new type of "player" to run in the game engine. Like standard PlayerData, it would be a character you move forward and back and change direction with with the mouse, you can look up and down, you can jump, it would display animations depending on the action you are doing etc. However, I also want it to have the characteristics of the VehicleData class such as being able to go upside down or orientate itself in relation to the surface it's going over, to have momentum and so have to take time to change speed or momentum. I'd also want to be able to control the player in mid air like in many FPSs (although this game will be 3rd person).
I'm unsure how to go about all this though. My first question would be could I do this all in scripting, or would it be best to dive into the source code itself. Next, how exactly would I approach it? Is there anything particularly relevant that I should look at first or any direction that's best to take? Is it a case of seeing what works and learning from looking and doing or should I first be certain of what I'm dealing with. Just generally, how do I go about getting this done?
Sorry for the questions, I'm okay with C++, but I'm still pretty new to the engine.
Any help you could give me would be greatly appreciated, thanks.

About the author

Torque Games -: Camelot Galway, Spike Dash, 14 Tribes, Illumina, & Terra: Formations. -: CEO of Riverplay Games. -: CEO of Wiccle Limited - Open Source / Open Core CMS Developer & Publisher.


#1
07/07/2004 (10:37 am)
Look in the upper right area of your screen, you should find a "Search" bar.
#2
07/07/2004 (10:38 am)
You would need to modify C++. I would suggest reading the getting started guide and the c++ engine reference first, then getting your feet wet with actual code changes.
#3
07/07/2004 (10:57 am)
This resource will get you started. It won't allow you to go upside down, and it can be a little jerky, but that's the closest thing that's currently available. Check into the .cc files for player and vehicle to see how they handle things, especially in their updateMove methods.
#4
07/07/2004 (6:03 pm)
Also check the AirControl resorce.
#5
07/16/2004 (1:28 pm)
Thanks guys, it's a good start.