Lock mouse don't work????
by Michael S · in Torque Game Builder · 10/26/2006 (7:48 am) · 4 replies
Hi
i want to ask
how to lock mouse in my window game?
i use lockmouse / setlockmouse
but it didn't work
here is my script
function startGame(%level)
{exec("./beelevel.cs");
Canvas.setContent(mainscreenGui);
Canvas.setCursor(DefaultCursor);
$wind=scenewindow2d;
Canvas.hideCursor();
moveMap.push();
sceneWindow2D.setUseObjectMouseEvents( true );
if( isFile( %level ) || isFile( %level @ ".dso"))
sceneWindow2D.loadLevel(%level);
scenewindow2d.setviewlimiton(-100,-105,220,165);
scenewindow2d.mount(mybee,0,0,0,true);
$wind.setlockMouse(true); ==> i tried this
lockMouse(true); ===> and tried this but it don't work all
}
could it be i must install TGE? because i only have TGB
thanks
i want to ask
how to lock mouse in my window game?
i use lockmouse / setlockmouse
but it didn't work
here is my script
function startGame(%level)
{exec("./beelevel.cs");
Canvas.setContent(mainscreenGui);
Canvas.setCursor(DefaultCursor);
$wind=scenewindow2d;
Canvas.hideCursor();
moveMap.push();
sceneWindow2D.setUseObjectMouseEvents( true );
if( isFile( %level ) || isFile( %level @ ".dso"))
sceneWindow2D.loadLevel(%level);
scenewindow2d.setviewlimiton(-100,-105,220,165);
scenewindow2d.mount(mybee,0,0,0,true);
$wind.setlockMouse(true); ==> i tried this
lockMouse(true); ===> and tried this but it don't work all
}
could it be i must install TGE? because i only have TGB
thanks
Thread is locked
#2
Michael - stop, for the love of all, just stop.
10/26/2006 (8:40 am)
Jesus - I have wanted to say that so badly Ben, but I can't seem to work it as nice as you.Michael - stop, for the love of all, just stop.
#3
i just don't know where this thread must go ? on general discussion or getting started
sorry
10/26/2006 (10:39 pm)
Ooh sorryi just don't know where this thread must go ? on general discussion or getting started
sorry
Torque Owner Ben R Vesco