Game Development Community

ActionMap is dead in MiniPlatformer Tutorial

by Kenny · in Torque Game Builder · 03/05/2007 (8:03 pm) · 1 replies

I can press SPACE to jump,but RIGHT and LEFT is dead.
Why? i checked the script several times

#1
04/29/2007 (7:56 am)
I got the same problem too, but caught the mistake because I did the shooter tut earlier. You need to enter $pGuy.updateMovement(); to the end of each left, right, rightstop, leftstop function. Something like



function playerLeft()
{
$pGuy.moveLeft = true;
$pGuy.updateMovement();
}

function playerLeftStop()
{
$pGuy.moveLeft = false;
$pGuy.updateMovement();
}


Hope that helps.