Parallax Layer 2D / Does not scroll in Y Axis

Godot Version

4.3

Question

Project: Simple dodge Objects while falling down

After i updated my Project to 4.3, my parallax Layer are messed up. So i decided to redo the whole thing. This Parallax Layer should only scroll to the Y-Axis. BUT all my drawings are for a X-Axis Background. So i need to rotate them.

Now to my Question, how to make the Parallax Layer Scoll in the Y-Axis in 4.3.
Currently in Parallax Layer is “to slow” i start with a emthy background then fall in the Background. But the Background, does no move with me at the same speed, it’s slower

Down below my Parallax structure and my level


Wouldnt something like this work?

var scrollingspeed = 100

func _ready():
	rotation = 90

func _process(delta):
	scroll_offset.y -= scrollingspeed * delta 

Add a script to the parallaxbackground
image

I endup redoing the whole Background. I pre-rotated the images and used them inset of rotated them in Godot.

Now everything works like before

Oh your issue was the rotation! Sorry you had to do extra work, but that’s fixed in master and will probably be backported to 4.3. Fix `Parallax2D` repeats being not relative to its transform by kleonc · Pull Request #95666 · godotengine/godot · GitHub

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