Parallax2D fails to adjust with viewport size update

Hi everyone,

I am trying to build a fun space shooter game to remember my past knowledge of godot, since I abandoned it for quite some time

Here is a weird glitch I found through:

I am using parallax2d’s (not the legacy ParallaxLayer) to simulate the backround stars

but as shown in the above video, when I maximised my game window, the background failed to adjust to the new game resolution, giving this awful broken state I would like to avoid

Images for troubleshooting



Project & Engine details

Version string: “Godot Engine v4.7.stable.official.5b4e0cb0f”
Compatibility Layer: “Forward+”

I have already read previous articles in forums such as: Parallax problem with resolution and GameMaker - Parallax Background fixed to Viewport size | GameMaker Community and How do I fix the Parallax Background to work no matter the window size? Thanks! but were too complicated, and I didn’t understand what steps I should take

If anyone has any idea on how to solve this, I’d love to hear back from you!

Has anyone figured it out? Sorry to bump this, but I can’t find the solution myself :confused:

How big is the image you’re using? If it’s not big enough to cover the highest resolution when you expand, that’s the problem.


This big

That’s not an answer. You can double-click the file and get the size in the Inspector.

It is 272x160, I though the blue lines shown are enough to get an idea of the size of the camera view, and the relative stars

It looks like you don’t have your textures or Parallax2D nodes set up correctly to cover your screen. Take a look at the tutorial to set it up properly.

The blue lines show the resolution set in your Project Settings. If you make the resolution bigger than that (which you did), they are no longer covered.