Game Development Community

Small Walking Animation Test

by Rodney Rindels - Torqued · in Torque Game Builder · 05/16/2006 (10:50 pm) · 9 replies

GuiWindowCtrl with minimap of same level playing a small walking animation test.

Zoom Controls ties to wheelmouse focus in on the player during one part of the capture.

Static ScreenShot
carapace.servehttp.com/downloads/walking.png

Crappy Fraps Capture, but shows the basic idea. These are tests of an isometric player sprite.
carapace.servehttp.com/downloads/walking.avi


Damn I love this engine!

#1
05/25/2006 (5:19 pm)
Cool, very cool. How you do that?
#2
05/25/2006 (6:20 pm)
Which part :-)

The player is a simple sprite animation with its x and y velocity matching.

The Minimap is a Gui Window Control with an embedded t2dSceneWindow embedded with a sceneGraph of the same level as the big screen..

zooms were created by quickly unmounting and remounting the camera.
#3
05/26/2006 (12:23 pm)
If you dont mind can you email me the details on how to get the minimap working. Thank alot. I though the figure was 3d shape, outstanding job.
#4
05/28/2006 (9:09 pm)
Rather than do that, If I have time, I'm going to write up a resource on how I choose to implement it. Others may find it useful as well..
#5
05/29/2006 (8:52 am)
Thanks very much.
#6
05/29/2006 (7:33 pm)
Well I guess people didn't like where I posted the last one so... I'll just put it here for your benefit Michael.

Creating a mini map in game is fairly straight forward.

new GuiWindowCtrl(miniMap) {
      canSaveDynamicFields = "0";
      Profile = "EditorWindowProfile";
      HorizSizing = "right";
      VertSizing = "bottom";
      position = "9 27";
      Extent = "246 225";
      MinExtent = "80 60";
      canSave = "1";
      Visible = "1";
      hovertime = "1000";
      text = "Mini Map";
      maxLength = "1024";
      resizeWidth = "1";
      resizeHeight = "1";
      canMove = "1";
      canClose = "1";
      canMinimize = "1";
      canMaximize = "0";
      minSize = "80 60";

      new t2dSceneWindow(miniWindow) {
         canSaveDynamicFields = "0";
         Profile = "GuiDefaultProfile";
         HorizSizing = "width";
         VertSizing = "height";
         position = "10 30";
         Extent = "225 187";
         MinExtent = "8 2";
         canSave = "1";
         Visible = "1";
         hovertime = "1000";
         lockMouse = "0";
         useWindowMouseEvents = "1";
         useObjectMouseEvents = "1";
      };
   };

you can save this GUI file. I choose minimap.gui

then exec into your project and provide canvas push pop ability
exec($currentProject @ "/gui/minimap.gui");
miniWindow.loadLevel($currentProject @ "/levels/myminilevel.t2d");
moveMap.bindCmd("keyboard","m","toggleMiniMap();","");

function toggleMiniMap()
{
      if($mmIsShowing)
      {

              canvas.popDialog(miniMap);
              $mmIsShowing = 0;

      } else {

              canvas.pushDialog(miniMap);
              $mmIsShowing = 1;
      
      };

}
#7
05/29/2006 (8:22 pm)
He he :) I saw the original post and copy/pasted the code out to a text file just in case the resource confusion ment you needed to pull it
#8
05/30/2006 (6:57 am)
Thanks alot, this very cool.
#9
05/30/2006 (4:38 pm)
Your certainly welcome Michael. Glad it helped you out.!