0 votes

I'm making a GUI using godot and I want transition animation when switching to another scene instead of instant change (No animation) when using gettree().changescene("MyOtherScene") I am trying to mimic the ios feel when switching to another scene. Is there any function to accomplish this?

in Engine by (16 points)
edited by

try adding a new scene, displaced sideways by the screen size, have an animation or whatever to switch the scene that is infront of the viewport, and remove the original scene

otherScene = load("res://scenes/OKR.tscn").instance()

But even when I set the margin of the viewport container, the scene child is still rendered at (0, 0)

1 Answer

0 votes

I do not know of any built in functionality for fancy scene transitions. However, there are several ways you can do this yourself. Other people (aka Zylann) have already answered better than I can:

Transitions on change scene <- probably the most relevant to you
Scene switching and returning?
How to load and change scenes

by (638 points)
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 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 webmaster@godotengine.org with your username.