![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
random game
I've finally figured out how to make animations work in SDL(kinda). I did it by activating a specific src x and y every time a specific button is pressed. It works fine, but because it only activates a specific animation on a specific button when pressed, I don't know how to make it revert back to the idle animation. I jump and it's stuck on the jump sprite unless a different key is pressed. Weird. I tried doing a if touched ground, src.x = 0 and src.y 0 (meaning it goes back to idle) it worked, but now the left and right animations doesn't even work. This is frying my brain honestly. I'll get back to that, I'll add a goal to the game first. (currently it's just a flat platform with an enemy that is impossible to get away from lol).