Animate canvas position on zoomed map

Godot Version

4.3rc3

Question

So this is a weird one.

i want to use an AnimationPlayer to move an object. Easy, right?

The wrinkle:
i have a LevelManager that loads Levels. LevelManager has an object on a CanvasLayer (a shade to hide the scene). The Level sometimes has an object to show over it. That means the object has to go on the Level’s CanvasLayer. Still okay. Levels come in different sizes so i use a camera to zoom in or out. Because of the zoom, nothing in the Level.CanvasLayer is in the right spot. But it’s okay, i have code to reposition objects. Unfortunately this doesn’t work with AnimationPlayer because it’s keyframed the position. If i manually move the object, playing the animation puts it right back.


No, that is not where the green dot goes! Go on the path like in the editor!

Now, i could give up on the animation player and write a tween to move it. The problem with that is that this is all being authored through a Tutorial Builder i’m making so i’m trying to keep things generic and writing tween code would break that. But i’m running out of other ideas.

tl;dr - i want to move a ball across a screen and my complex situation has made that difficult.