Game Development Community

Tanks

by Steve · in Torque Game Engine · 09/02/2006 (1:56 pm) · 4 replies

I am a beginner and am making a war game based around tanks, i have made the tank and animations but don't have an idea of how to use it in the game, hope somebody can help, thanks

About the author

Recent Threads

  • Tank Pack
  • Spawning

  • #1
    09/02/2006 (2:21 pm)
    While i'm still online, at the start of the racing starter kit there is a page where you choose the mission that you want to play, i have made several levels for my game but they all show as racing example on that startup page, i know it's a basic question and someone will probably have the answer straight away but i haven't been using this engine very long and want to learn all the basics, thanks again
    #2
    09/03/2006 (7:05 am)
    For the mission name and description either enter the mission editor in game (F11) and find "MissionInfo". Hit F3 to enter the properties section and type in your mission name and description. Alternatively, just open up your mission file in a text editor and type it in there.
    new ScriptObject(MissionInfo) {
             name = "Tank's R Us";
             desc0 = "My Cool Tank Mission";
       };

    Tanks are a little less trivial. For the moment you could just use a wheeledVehicleClass to get your tank in game. If you're using the racing kit, the quickest way to do this is to open server\car.cs and lead the dts shape name to your tank model.
    datablock WheeledVehicleData(DefaultCar)
    {
       category = "Vehicles";
       shapeFile = "~/data/shapes/buggy/buggy.dts"; // Change this to your tank dts
       emap = true;
    I would recommend purchase of the Tank Pack if you're after something a little more realistic.

    If you haven't exported your tank to a dts yet, there are plenty of tutorials on this site as well as TDN.

    -Tim.
    #3
    09/03/2006 (10:10 am)
    Thanks for that tim, i will think about getting the tank pack unless you know how to control how much of an animation is used, eg. the movement of the turret (hold a button a certain amount of time to control how much the turret turns).
    #4
    10/02/2006 (9:40 pm)
    Look into the starter.fps for the normal movements, take the "a" and "d" keys for rotational factors (as current mouse movements for look left/right), "w" and "s" for forward/reverse movements for the tank, and the mouse to control the turrent/barrel (mouse movement = movement direction) Or arrow keys with space bar as fire primarry weapon... (This should give you the realizm of the tank movement.)

    Have fun Gaming :-)