A
Agletsio
Guest
Hi there,
I'm busy working on side-scroller.
I'm trying to make my background parallax scroll when I'm moving right or left.
At the moment I am able to do parallax scrolling with the background function in room editor.
And I am able to to make viewport follow my Player.
But my problem is I can't get them to work together. With the built in background setting in room editor (Hor. speed, Vert. speed) you can only set a constant speed, without factoring in your player movement.
And when using the "viewport follow player" setting, the backgrounds scroll as a whole and not individually to create the parallax effect.
Ideally I would want my background to only parallax scroll when my player is moving. How would I approach this?
Would I need to use code in Player step event to achieve this?
Any help would be much appreciated!
I'm busy working on side-scroller.
I'm trying to make my background parallax scroll when I'm moving right or left.
At the moment I am able to do parallax scrolling with the background function in room editor.
And I am able to to make viewport follow my Player.
But my problem is I can't get them to work together. With the built in background setting in room editor (Hor. speed, Vert. speed) you can only set a constant speed, without factoring in your player movement.
And when using the "viewport follow player" setting, the backgrounds scroll as a whole and not individually to create the parallax effect.
Ideally I would want my background to only parallax scroll when my player is moving. How would I approach this?
Would I need to use code in Player step event to achieve this?
Any help would be much appreciated!