+1 vote

I make a runner-game. I have a background that scrolls with a shader. I want to smoothly change the background texture (like in Terraria). How can I do this?enter image description here

in Engine by (35 points)

1 Answer

+2 votes
Best answer

Use two textures (Sprite or TextureRect) and use an AnimationPlayer or Tween to change the modulate.a (ie transparency) property of each - one from 1 to 0 and the other from 0 to 1.

by (21,981 points)
selected by

It seems this is the only solution. Thanks!

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.