Animation Management in 8-Direction Games

You're viewing a single comment in a conversation. View all the comments
  • 2 Comments

  • Order by
  • Anybody know what the math is if you DO want all 8 directions, rather than just the 4 listed here?

    • floor((((Player.Angle + 22.5) % 360) / 45))

      You will need to number your animations from 0 to 7. This is a really late response, I know, but maybe it'll help others who have the same question!