how do i make endless scrolling backgound (for an endless runner)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Puntunz

How do i make my background scroll infinitely and slowly pick up speed

Im really new to godot and i cant figure out how to make it work and i tried looking for solution before but, i dont know, maybe i just wasnt looking the right place.
Thank you

:bust_in_silhouette: Reply From: Jowan-Spooner

For a 2d game I would recommend ParallaxBackground because it will repeat your image infinitely. This tutorial makes it pretty clear how to use it I think. Also with multiple layers it looks awesome :). You can change the layers speed property via script, depending on your games stats.

Hope it helps! Good luck.