William Garrison
Member
Whats up gang! Obligatory "I am new to GML", but I have a question that I am hoping there is a simple answer for. I am setting up Parallaxing for my Side Scroller Game and it works great for the "Background Layers" but I want to also be able to apply it to Standard Instance layers. The code that works for the BG layers does not for the others. How can I get this to work for them as well?
(Camera) Create Event
(Camera) Step Event
(Camera) Create Event
Code:
P1 = layer_get_id("P_L1");
Code:
if (P1) layer_x(P1,x/2);