Hey, sorry for this simple question. But I was just wondering if this would work in a code.
function move_forward()
{
Play "walking.animation";
//Move forward
}
............
if (key_cuu == 1)
{
move_forward;
}
Would that work? Define the function of moving forward up there, and then say, if the up arrow is pressed (key_cuu == 1) then play the walking animation and move forward. Or is that wrong?
Also, how does the code for playing an animation and moving a character forward work? Like, I know for sound, it would be like:
snd_play (beep_3, 90, 0), so is the animation like that? If so, was is it?
And what is the code for the character to actually move forward?