A
Anomaly
Guest
Hi, new here.
I've been using this script from this guy's Youtube Tutorial on Parallax Backgrounds.
I have it working great.
But I want to have one of my parallax layers be an actual object(s)... NOT a background.
script:
is there a way to make this kind of thing work? (in between ?'s is my note obvs)
THANKS!!
I've been using this script from this guy's Youtube Tutorial on Parallax Backgrounds.
I have it working great.
But I want to have one of my parallax layers be an actual object(s)... NOT a background.
script:
Code:
var layer_id1 = layer_get_id("Backgrounds_1");
var layer_id2 = layer_get_id("Backgrounds_2");
var layer_id3 = layer_get_id("Backgrounds_3");
// lerp the layer coordinates to your camera view
layer_x(layer_id1, lerp(0,camera_get_view_x(view_camera[0]),.5));
layer_x(layer_id2, lerp(0,camera_get_view_x(view_camera[0]),.75));
layer_x(layer_id3, lerp(0,camera_get_view_x(view_camera[0]),.85));
Code:
var layer_id4 = ???get this object's instance name?? ("Backgrounds_OBJECT_4");