Sprite animation FPS in runtime? (SOLVED)

Thank for your answer! :slight_smile: All the keywords were included in it, but I struggled with almost every tiny thing (flipbook? playback_rate? offset? everything is new to me :baby: I’m currently tweaking the second tutorial ahah)… but I suppose this struggle is unavoidable.

Anyway, I ended up making it work by controlling each frame and playing them at my own pace, I can know which frame is currently played etc.

I no longer use the “FPS” property nor the playback_rate you mentioned in your message. I don’t know if this is how I should do, since this is so far away from the tutorial… but it works and at least I know why.

For now, every second the offset is increased by 0.1 (temporary values)… So I was wondering:

Is there a way to get (in code) the number of frames of a given animation? (from that I could calculate what’s missing - edit : in the meantime I’m using local variables (1 per animation), and it seems to work fine. :nerd_face: