How to optimize the parallax 2D node

Godot Version

4.3

Question

im trying to make a parallax2D node that repeats for an infinite amount of times, but that will cause lag.so i got an idea.the parrallax2D node will repeat only two times and if one exits the screen and also the other one is going to exit, the exited one will go to the other direction.like the one on top:

but i dont know how to make/code it.

if you know the answer pls reply :smiley:

1 Like