How do I set a keyframe to an objects position dynamically

Godot Version

4.2.2

Question

I’m trying to make a hover animation for something, but I noticed that if you quickly unhover after hovering, the unhover animation snaps to its first keyframe. Is there a way to make this first keyframe just go from where the object started? I know removing the first keyframe would work but I also want to ease into the next position which I don’t know how to do without removing the keyframe. Anything that either eases without a keyframe or dynamically adjusts a keyframe value would work. Preferably outside of scripting but if it’s only possible with scripting then that’s fine, but if that’s the case please give me the code as I’m new to Godot.

You could try setting the track update mode to Capture Introduction to the animation features — Godot Engine (stable) documentation in English Depending on what you are trying to do it may be enough.

If you need more control then you’ll need to use Tweens in code. Read the documentation to know how to use them.