#Parallax Background Follow Camera2D on the Y axis only

1 messages · Page 1 of 1 (latest)

dense cave
#

I want the parallax background to follow the Camera2D on the Y axis only, how should i do that?

#

Also how should i fix the popping?

#

the Background loads in on screen

tacit portal
#

heya 👋

dense cave
#

hi

tacit portal
#

is the background just not visible at all at the moment?

#

and it's only grey?

dense cave
#

its weird, sometimes the background jsut straight up dissappears

#

so i have to copy the parent node, delete it and then paste it again

#

and then it works

tacit portal
#

at runtime or in the editor?

dense cave
#

anyway i fixed the popping and stuff, all i need is for it follow the camera on y axis

tacit portal
#

do you have a video of how it looks atm?

dense cave
#

the background is visible but not following the camera

tacit portal
#

as in not moving at all?

#

versus scrolling sideways slightly as you progress to the left or right?

dense cave
#

alright i'll just post a video

tacit portal
#

ah I see, how does your scene tree look?

dense cave
ornate wedge
#

I think the mirroring might be wrong

dense cave
#

how

#

its in the width of the image

ornate wedge
#

in the Y axis, is it set to 0?

dense cave
#

yeah

ornate wedge
#

I'll see if it's also set to that here

#

to me it's like this

tacit portal
#

are any of the settings for the parent ParallaxBackground tweaked?

tacit portal
#

on your ParallaxLayer, your Y scale should also be 0 if you do not want it to scroll and have it stay aligned with the camera

dense cave
#

yet it doesnt work

#

aaaa

dense cave
#

I have just made the level jsut very limiting to the y axis

#

its too late