fade image key jump scene
by Yue -Rookie Torque 3D- · in Torque 3D Beginner · 09/06/2013 (8:02 pm) · 3 replies

Hi, I have the first welcome screen, I want to press the escape key will jump to the main menu, the default is the left mouse button, but I want to be the escape key.
About the author
http://www.iris3d.tk -Games Studios- <<I do not speak English: I use the google translator>> My goal as a rookie is knowing Torque 3D
#2
the downside is that I do not work with the default templates Torque 3D if three initial files.
Exe.
dll.
main.cs
09/07/2013 (7:03 am)
function escapeFromGame()
{
if ( $Server::ServerType $= "SinglePlayer" )
MessageBoxYesNo( "Exit", "Exit from this Mission?", "disconnect();", "");
else
MessageBoxYesNo( "Disconnect", "Disconnect from the server?", "disconnect();", "");
}
moveMap.bindCmd(keyboard, "escape", "", "handleEscape();");the downside is that I do not work with the default templates Torque 3D if three initial files.
Exe.
dll.
main.cs
#3
if ( !isObject( moveMap ) )
new ActionMap(moveMap);
function escapeFromGame()
{
disconnect();//end the game
Canvas.setContent( MainMenuGui );//and set mainmenu as canvas content.
}
moveMap.bindCmd(keyboard, "escape", "", "handleEscape();");
09/09/2013 (4:08 pm)
// Default player key bindingsif ( !isObject( moveMap ) )
new ActionMap(moveMap);
function escapeFromGame()
{
disconnect();//end the game
Canvas.setContent( MainMenuGui );//and set mainmenu as canvas content.
}
moveMap.bindCmd(keyboard, "escape", "", "handleEscape();");
Ahsan Muzaheed
Default Studio Name
"scripts\client\default.bind.cs"
function escapeFromGame()
{
/*
if ( $Server::ServerType $= "SinglePlayer" )
MessageBoxYesNo( "Exit", "Exit from this Mission?", "disconnect();", "");
else
MessageBoxYesNo( "Disconnect", "Disconnect from the server?", "disconnect();", "");*/
disconnect();//end the game
Canvas.setContent( MainMenuGui );//and set mainmenu as canvas content.
}
moveMap.bindCmd(keyboard, "escape", "", "handleEscape();");