Skip to main content
replaced http://gamedev.stackexchange.com/ with https://gamedev.stackexchange.com/
Source Link

Please don't use the magnitude. Because all it does is complicate things. Use a constant number (aka frameRate) that will determine the speed of change in frames. You can also check out this answer: Sprite Animation Best PracticesSprite Animation Best Practices

The above method will allow you to have the same animation that can be used by multiple sprites. Instead of each sprite having it's own animations. Hope this helps :D

Please don't use the magnitude. Because all it does is complicate things. Use a constant number (aka frameRate) that will determine the speed of change in frames. You can also check out this answer: Sprite Animation Best Practices

The above method will allow you to have the same animation that can be used by multiple sprites. Instead of each sprite having it's own animations. Hope this helps :D

Please don't use the magnitude. Because all it does is complicate things. Use a constant number (aka frameRate) that will determine the speed of change in frames. You can also check out this answer: Sprite Animation Best Practices

The above method will allow you to have the same animation that can be used by multiple sprites. Instead of each sprite having it's own animations. Hope this helps :D

Source Link
Cephas
  • 386
  • 1
  • 14

Please don't use the magnitude. Because all it does is complicate things. Use a constant number (aka frameRate) that will determine the speed of change in frames. You can also check out this answer: Sprite Animation Best Practices

The above method will allow you to have the same animation that can be used by multiple sprites. Instead of each sprite having it's own animations. Hope this helps :D