Game Development Community

Mouse control

by Mark Lafferty · in Torque Game Engine · 01/24/2002 (4:14 am) · 6 replies

If I would like to use the mouse to select ojects while in the game as opposed to being used in movement is there an easy way to do this? I have been looking in the editor and how it uses the mouse but haen't had enough of a chance to see how I could make use of it in that way.

#1
01/24/2002 (5:22 am)
in the binding files, there as a bind thats something like "yaw = mousexaxis" and "pitch=mouseyasix" that would stop from moving your character. then you can go ahead and make it so your playgui shows the mouse pointer instead of hiding it. By then id say your more than halfway to what you want.
ryan
#2
01/24/2002 (7:59 am)
How would you go about seperating where your looking to where your aiming?

Like in MechWarrior
#3
01/24/2002 (9:14 am)
Aiming could be acheived by clicking on something with the mouse like in Baldurs Gate.

Haven't played mechWarrior so I am not sure how it is accomplished there.
#4
01/24/2002 (10:17 am)
in script, the cursorOn() and cursorOff() functions toggle the cursor

or maybe it's showCursor(%visible);
#5
01/24/2002 (3:25 pm)
In fps\client\ui\playGui.gui

//--- OBJECT WRITE BEGIN ---
new GameTSCtrl(PlayGui) {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
noCursor = true;

Commenting the last line out:

//noCursor = true;

This will seperated the mouse from controlling movement as well as making it visible. I believ at that point you are able to interact with menus and such. At this point I do not know how to interact with world objects. I am interested in being able to select objects and issue commands as well. Does anyone have any ideas on this?

Mike Wigand
FullSail Student
#6
03/19/2002 (7:34 pm)
Did anyone find out how to interact with world objects?