ok i already have a set of walking animation, now i added a crouching animation and i would like to make it so that when the crouch button is pressed, the walking controls play the crouch walking animation, then when c is pressed again, it stands up and plays the regular animation.
if(dbKeyState(17) == 0 )//stand still
dbLoopObject(1,0,0);
if(dbKeyState(17) == 1 )//walk forward
dbLoopObject(1,92,128);
if(dbKeyState(30) == 1 && dbKeyState(17) == 0 )//move sideways-left
dbLoopObject(1,92,128);
if(dbKeyState(46) == 1)//the crouching
dbLoopObject(1,136,144);
lastly, how would i make it so that when i press C the crouching pose is showed and the player moves down to be level with the map, then when i press C again he returns to his regular height.
i tried dbMoveObjectDown but i have no way of bringing him back up