Creating a "Scrolling Lines" background effect?

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

I’m trying to add a visual effect where the background of a menu has a constantly moving grid of scrolling lines, see here:

(note: I only want to do the grid of thin lines, not the vignette nor the thick vertical line that moves horizontally)
How would I go about doing this? I considered using an animated sprite with frames set to be each pixel movement of the grid, and alternatively physically moving a grid image and resetting its position before it can go completely offscreen, but I wanted to make sure if there are any better ways to achieve this first.

:bust_in_silhouette: Reply From: exuin

You can use a shader to scroll the image. Scrolling background - Godot Shaders

The link you provided wasn’t something I fully understood, but I did do some research about shaders and got the exact sort of effect I was looking for. Thanks!

(FYI for those reading this thread later: I followed a guide at

Pyhrrous | 2021-06-08 02:52