Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Sigma-One | |
Old Version | Published before Godot 3 was released. |
I have set up a hallway with a background that moves vertically in relation with the player’s movements, and it is working fine. The hallway background is taller than the hallway so it does not leave gaps in the background when moving. But I want it to not render outside the hallway, as this would cover the space background visible on the outside. The problem is that I have no idea if this is possible, and if it is, how it is done. An area in which the background is allowed to render isn’t possible as the hallway’s height may vary.