Flipping animation for a label

Godot Version



I asked an artist to draw a flipping page animation for my 2D game, so I got an animated 2D sprite for one page, which looks perfect; however, additionally, I want to put a generated label on the page, and I want it to be part of the flipping animation as well. How can I do this, considering the label is dynamically formed for each page? What is the best practice for such a task?

you could tween it’s scale.x from 1 to -1

const DURATION = 0.5
var label = $Label

var tween := label.create_tween()
tween.tween_property(label, "scale:x", -1, DURATION).from(1)
1 Like

I will try it, thank you!