This is my code:
//Left / Right
if joystick_xpos(1)>0.20 sprite_index=spr_walk_right image_speed = 0.1{
xMover = joystick_xpos(1)}
if joystick_xpos(1)<-0.20 sprite_index=spr_walk_left image_speed = 0.1{
xMover = joystick_xpos(1)
}
if (joystick_xpos(1)>0.20 or joystick_xpos(1)<-0.20)
{//nothing
}
else{xMover = 0}
//Up / Down
if joystick_ypos(1)<-0.20{
yMover = joystick_ypos(1)}
if joystick_ypos(1)>0.20{
yMover = joystick_ypos(1)
}
if (joystick_ypos(1)>0.20 or joystick_ypos(1)<-0.20)
{//nothing
}
else{yMover = 0}
When my character stops. (He still animates)
How do I stop him from animating?
Joystick Help!
Started by nellogello, Jul 16 2011 10:32 AM
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











