Jump to content
IGNORED

Animation glitch


Captain Spazer

Recommended Posts

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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...