M
Mycomancer
Guest
In GMS1 parallax scrolling was very easy to do. You would just update the position of each background each frame like so.
In GMS2 I can't seem to find a way to do this. Looking over the documentation for background layers, most of the same functionality (such as changing the tiling or the alpha) has returned, but setting the x and y seems... absent. I can set the x and y offsets in the editor just like before, but I don't see a way to do this in code.
Am I missing something obvious or is that actually not here?
Code:
background_x[0] = view_xview[0];
background_y[0] = view_yview[0];
background_x[1] = view_xview[0]/2;
background_y[1] = view_yview[0]/2;
background_x[2] = view_xview[0]/4;
background_y[2] = view_yview[0]/4;
Am I missing something obvious or is that actually not here?