Direction Animation Switch

Ahoy!

I’m having a bit of trouble. I’m using this guide for LibGDX 2D Animation, https://github.com/libgdx/libgdx/wiki/2D-Animation. I currently have it set so that if facing direction 1, it runs the for loop, however if facing direction 2, it runs the a different for loops.

Basically, what happens is that when I switch to a different direction in game, it runs debug mode… which leaves like no errors.

If that makes any sense. If it doesn’t, please refer to that tutorial I linked.

Thanks!

  • A