Hey. It's me again.
So things are going nicely. I thought it would take longer to wrap my head around Godot's unusual architecture but it's surprisingly intuitive and neat.
Anyway, I ran into an issue and it fits this topic so I'm restarting it. I want to flip a sprite! that's simple enough with flip_h variable, but I'm also animating offset and I want that flipped as well. In a 3D environment this is easily achieved by rotating around z. But here I have no idea what to do. There must be a simpler way than duplicating all animations or altering keyframe values from script.
Can I animate my own parameters? I couldn't find any tutorial exposing script variables in the inspector, which would allow me to animate it. This could work for me as I expose a vector of my own and offset the sprite myself the way I need it.
edit: Just found out about export var. So that works. Still not ideal though, as I lose the visual reference when animating. So I'm still looking for a solution to this.
edit 2: OK! I got this. Make the sprite a child of a node2D and change x scale to -1. The local offset happens on the sprite but after the animation is done and you want to commit that offset to the sprite, change the node2D's position, not the sprite's.