1.5 and 1.5.1 CTRL and ALT keys interfere with bindCmd
by Conor O Kane · in Torque Game Builder · 08/07/2007 (5:24 am) · 1 replies
Here's a simple movemap code that worked fine with TGB 1.1.3
However in TGB 1.5 or later, holding CTRL or ALT, then pressing and releasing the up key prevents the key release command ($player.movement(stopUp)) from being called.
moveMap.bindCmd(keyboard, "up", "$player.movement(up);", "$player.movement(stopUp);");
However in TGB 1.5 or later, holding CTRL or ALT, then pressing and releasing the up key prevents the key release command ($player.movement(stopUp)) from being called.
Torque Owner Daniel Jami
in a fast solution i add more keybind for 1 move
for up : up / ctrl + up / shift + up / alt + up
moveMap.bindCmd(keyboard, "up", "$player.movement(up);", "$player.movement(stopUp);");
moveMap.bindCmd(keyboard, "ctrl up", "$player.movement(up);", "$player.movement(stopUp);");
moveMap.bindCmd(keyboard, "shift up", "$player.movement(up);", "$player.movement(stopUp);");
moveMap.bindCmd(keyboard, "alt up", "$player.movement(up);", "$player.movement(stopUp);");
...