Parallax2D auto-scroll not working at all

Godot Version

Godot 4.3 Stable

Question

Auto-scrolling for Parallax 2D node not working


I am making a 2D Shoot em’ up game.


As you can see, I have a very long .PNG for the background of my game.
I want the background of my game to auto-scroll down vertically so as if it seems the plane is moving forward whilst playing.

But, whenever I edit the auto-scroll Parallax2D settings, and then run my game. nothing changes. The background does not move. I tried mixing and matching by changing other settings in Parallax2D and even putting very large numbers into the auto-scroll, but no matter what the game does not automatically scroll when running. I know I can script this, but I want to know how to implement the new parallax2D node because it seems way simpler in all the tutorials I’ve seen.

I don’t understand what I am doing wrong. Any help would be appreciated, thanks.

Here’s the full Godot project for anyone willing to check it out: Github repo for the Godot project

1 Like

Hey! I had the same problem in my own project.
Testing, I found out that you need to set a repeat size in the Parallax2D to start the autoscroll. You can see the property just above the autoscroll speed.

The documentation indicates that for the background to repeat infinitely, this repeat size must be set.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.