0 votes

I made simple infinite background with this tutorial:

Now I want something little more complicated: I want the texture image to change depending on game context. I can do this with white flash transition effect (flash to white, change texture, white to normal) but it would be much more useful if it could slide in sticked to previous background. That way I could introduce new places on the way (mountains, then forest, then village, like this).

Not sure what is the best way to create this kind of effect.

I could stop animation, slide texturerect off screen and at the same time slide in another texturerect one with different background. Then reuse offscreen one for the next transition - but that feels little clumsy. Is there a better way to get this effect? Maybe I should slice my backgrounds into tiles and go more in procedural generation(Tile-based Infinite background)?

Thanks for any tips.

Godot version 3.3
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.