Jump to content


Photo

Joystick Help!


  • Please log in to reply
1 reply to this topic

#1 nellogello

nellogello

    GMC Member

  • New Member
  • 1 posts

Posted 16 July 2011 - 10:32 AM

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?
  • 0

#2 YellowAfterlife

YellowAfterlife

    GMC Member

  • Global Moderators
  • 3497 posts
  • Version:GM:Studio

Posted 16 July 2011 - 10:40 AM

Questions must be posted in Novice & Intermediate category.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users