AnimationPlayer to window size

Godot Version

-4.2.2

Question

Alright so I have a Animation Player animation the game is static (no camera movement) animation has a position key works great but if you resize the window it doesn’t go to the same place how would i make the position scalable to window size?

no one :frowning:

You could change the viewport scale options in the Project settings, to canvas_items is a good option.

If you want the window to be resizable as it is then you probably need to use a Control node, animating the anchors instead of position.

If you cannot use a Control node, then you will need to use a tween and calculate the ending position based on the window size, by say get_viewport().size

1 Like

THATS SO SMART and yes its very control node based lol

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.