Mouse question
by Harrison Brock · in Torque Game Engine · 04/19/2007 (7:24 am) · 1 replies
Ok here is what I have:
function moveleft(%val)
{
$mvLeftAction = %val * $movementSpeed;
}
function moveright(%val)
{
$mvRightAction = %val * $movementSpeed;
}
Is there any one I can call the moveleft function when a use move the mouse left on the xaxis and to call the moveRight funtion when the user move the mouse right on the xaxis?
I have this:
moveMap.bind( mouse, xaxis, yaw );
but I need a way to call the moveleft and moveright.
Thanks for ur help
function moveleft(%val)
{
$mvLeftAction = %val * $movementSpeed;
}
function moveright(%val)
{
$mvRightAction = %val * $movementSpeed;
}
Is there any one I can call the moveleft function when a use move the mouse left on the xaxis and to call the moveRight funtion when the user move the mouse right on the xaxis?
I have this:
moveMap.bind( mouse, xaxis, yaw );
but I need a way to call the moveleft and moveright.
Thanks for ur help
Employee Michael Perry
ZombieShortbus
function straife(%val) { if(%val > 0) moveRight(%val); else if(%val < 0) moveLeft(%val); } moveMap.bind(mouse, xaxis, straife);