- Home /
how to change sprite animation through code
im making a 2d endless runner and im implementing a shop system where you can buy new skins the character has 4 sprites, one idle, one run with legs apart, one run with legs together, and one jump sprite. how do i change the sprites to a different one when you press a button in the shop menu?
im using these sprite assets btw https://www.kenney.nl/assets/platformer-pack-redux
Comment