Captain Spazer Posted August 30, 2016 Share Posted August 30, 2016 I'm having some beginner issues with animating player0's sprite. The glitch is that when you push joy0up & joy0left, joy0up & joy0right, joy0down & joy0left or joy0down & joy0right the animation freezes. But if you just press joy0left, joy0right, joy0up, joy0down it works fine. What am I missing? f=f+1 if f=10 then player0: %11000000 %01000011 %00111100 %01101110 %01111010 %01011110 %10111101 %11000011 end if f=20 then player0: %00000011 %11000010 %00111100 %01110110 %01011110 %01111010 %10111101 %11000011 end if i=0 then REFP0=0 if i=1 then REFP0=8 if f=20 then f=0 if joy0right then f=f+1 : i=0 : _P0_L_R = _P0_L_R + 0.35 if joy0left then f=f+1 : i=1 : _P0_L_R = _P0_L_R - 0.35 if joy0up then f=f+1 : _P0_U_D = _P0_U_D + 0.35 if joy0down then f=f+1 : _P0_U_D = _P0_U_D - 0.35 Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted August 30, 2016 Share Posted August 30, 2016 You probably need to change "if f = 20 then f = 0" to "if f > 19 then f = 0". 1 Quote Link to comment Share on other sites More sharing options...
Captain Spazer Posted August 30, 2016 Author Share Posted August 30, 2016 (edited) Thanks for the tip, worked like a charm! Edited August 30, 2016 by Captain Spazer Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.