In my code, I've got it where if I'm going to the right, it plays the character walking animation to the right, etc... But if I hold down the virtual joystick to the right, then pull left without letting off the click button, it doesn't change animations. It only changes animations once I let go of the virtual joystick. I also would like to have the character scale slightly when he walks to or from the screen. How do I do these activities within the code? I am a beginner, so please have patience with me. I already broke rule #1 with my original post (N00b Question) ... Please forgive me...
Here is my code:
if ( joystickX# = 0.0 and joystickY# = 0.0 )
StopSprite ( 2 )
if currentdirection = 0 then SetSpriteFrame ( 2, 1 )
if currentdirection = 1 then SetSpriteFrame ( 2, 5)
if currentdirection = 2 then SetSpriteFrame ( 2, 11)
if currentdirection = 3 then SetSpriteFrame ( 2, 20)
else
if ( GetSpritePlaying ( 2 ) = 0 )
if joystickX# > -.51 and joystickx# < .51 and joysticky# > 0.1 and joysticky# < .51 then currentdirection = 0
if joystickX# > -.51 and joystickx# < .51 and joysticky# > -1.1 and joysticky# < -.51 then currentdirection = 1
if joystickX# < -.51 and joystickx# > -1.1 and joysticky# > -.51 and joysticky# < .51 then currentdirection = 2
if joystickX# > .51 and joystickx# < 1.1 and joysticky# > -.51 and joysticky# < .51 then currentdirection = 3
if currentdirection = 0 then PlaySprite ( 2, 10, 1, 1, 4)
if currentdirection = 1
PlaySprite ( 2, 10, 1, 5, 9)
endif
if currentdirection = 2 then PlaySprite ( 2, 10, 1, 10, 17)
if currentdirection = 3 then PlaySprite ( 2, 10, 1, 18, 26)
endif
endif
Thanks in advance/