UEG_Productions
Member
I have set up a simple parallax system with the following:
I do this for multiple layers.
I have clouds that are a background layer that uses horizontal speed (in the room editor) to move.
I wanted to have the clouds have parallax but also move at the same time. When I apply the parallax code to the layer with a horizontal speed set, the clouds do not move.
It's probably a simple fix but I am not too sure how to do it since it's my first time with parallax.
GML:
if (layer_exists("Mountains_BG_1"))
{
layer_x("Mountains_BG_1",cam_x * 0.8);
}
I have clouds that are a background layer that uses horizontal speed (in the room editor) to move.
I wanted to have the clouds have parallax but also move at the same time. When I apply the parallax code to the layer with a horizontal speed set, the clouds do not move.
It's probably a simple fix but I am not too sure how to do it since it's my first time with parallax.