0 votes

For context, I'm creating a 2D top-down game and I would like to take advantage of the Bezier curves offered by the engine's Animation nodes. I have a script which sets the global location of the main scene node based on coordinates fed to the function.

set_global_transform(Transform2D(Vector2(1,0), Vector2(0,1), get_node("/root").get_size()/2 - WindowFocus))

Right now this happens instantaneously, but I'd like a nice transition. For some reason, I can't wrap my head around the animation and animation player nodes. How would I do this? Is there a better solution to this than what I've thought of?

in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.