Game Development Community

f11 and f10 and other functions

by Noah Gomes · in Torque 3D Professional · 02/15/2010 (2:18 am) · 6 replies

I am disable and use a on screen keyboard. I took a break from game development. I use Torque since 05, and I love it, but I have some issues with it being disable. Every new version I have to change the f10 and f11 because I can't use them on my on screen keyboard. And I can't right drag so I can't move in the editor so I have to get out of the editor and move and go back to the editor,, it is a pain. I was wondering if a Torque programmer have any ideas

#1
02/15/2010 (10:47 pm)
"...It's not easy love, but you've got friends, you can trust..."

Actually, Im lying, it is easy :)

So what you need is something that allows you to move the player from inside the editor, without draging with the right mouse button.

What you can do, is to use a keyboard combination of your choice, to activate and deactivate the players camera mouselook. For that, go to game/tools/worldEditor/scripts/editor.bind.ed.cs and somewhere around the line 50, below the function editorPitch(%val) paste this:

$mouseLook = true;
function toggleMouseLook(%val)
{
   if (%val)
   {
      if ($mouseLook)
      {
         lockMouse(true);
         Canvas.cursorOff();
         $mouseLook = false;
      }
      else
      {
         lockMouse(false);
         Canvas.cursorOn();
         $mouseLook = true;
      }
   }
}

EditorMap.bind(keyboard, "ctrl m", toggleMouseLook);

Notice that Im using the CTRL+M combination, but you can use any of your convenience.

This way, you press ctrl+m, and you'll be able to move around, without quiting the editor; when you are in the right place, hit ctrl+m again, and you'll recover the mouse cursor for working with the editor as usual.

Send beer to Tom Bampton whose experience help me understand how was the right mouse button activating the mouseLook. Until his help, were 2 hours wandering the code. You dont wanna know.
#2
02/15/2010 (11:08 pm)
thank you, that was easier what I thought... Maybe we could work together on a game
#3
02/15/2010 (11:22 pm)
Nah, it wouldn't work, I have God complex.

Now more seriously, I am tottally over my head with my current works, but who knows what the future holds :)

Now that I think of it, if you happen to have some spare time, I could put you in contact with my friend James, art lead on some of our projects, and maybe you could give us a hand.

Expect no money of course, I didn't get rich by signing checks.
#4
02/16/2010 (12:37 am)
haha. I have more time now,, I would help with models
#5
08/03/2012 (12:24 pm)
this isn't working on 1.2
#6
08/03/2012 (12:36 pm)
Hey Noah, sadly, I dont have T3D 1.2, so cant quite help for the moment.

Anyway, I expect someone to come and help in 3... 2... 1...