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.
About the author
#2
Like in MechWarrior
01/24/2002 (7:59 am)
How would you go about seperating where your looking to where your aiming?Like in MechWarrior
#3
Haven't played mechWarrior so I am not sure how it is accomplished there.
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
or maybe it's showCursor(%visible);
01/24/2002 (10:17 am)
in script, the cursorOn() and cursorOff() functions toggle the cursoror maybe it's showCursor(%visible);
#5
//--- 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
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?
Torque Owner Ryan Ackley
ryan