A bit of context: I'm developing a card game, when you hover the cursor upon the cards they play a short animation that slightly displace them, and the same animation plays backwards when the cursor moves out.
When moving the cursor out while the animation is still playing the playing backwards happens inmediatly; but if the animation already ended I get a delay tho the method is called inmediatly after the coursor has left.
func selecting():
$Player.play("select")
#print(name, " selected")
func deselecting():
$Player.play_backwards("select")
#print(name, " de-selected")
These functions are connected to the signals of mouse entering and mouse leaving respectively. I used the comented lines of code to test wether or not the call of the function was being done on time. They were. The issue seems to be the Animation Player.