M
Mister Bread
Guest
Hey everyone, I have my parallax bg's working perfectly. However, my code disables my moving foreground clouds and I can't seem to figure out how to get around it.
This is my Step Event for my parallax bg controller :
The for loop is the controller for the parallax while the other code centers the backgrounds to my view.
My only problem is figuring out how to make background[6], my foreground clouds "background", to still have horizontal movement.
I've used background_x[6] += 1 in a separate controller before, but this parallax code cancels it...
Is there any way to recode the for loop to have background[6] be excluded? Or... should I find a different route to have foreground moving clouds..?
Thank you for your help!
This is my Step Event for my parallax bg controller :
Code:
background_x[0] = view_xview[0];
background_y[0] = view_yview[0];
background_x[1] = view_xview[0];
background_y[1] = view_yview[0];
background_x[2] = view_xview[0];
background_y[2] = view_yview[0];
background_x[3] = view_xview[0];
background_y[3] = view_yview[0];
background_x[4] = view_xview[0];
background_y[4] = view_yview[0];
background_x[5] = view_xview[0];
background_y[5] = view_yview[0];
background_x[6] = view_xview[0];
background_y[6] = view_yview[0];
view_xview += 5*(keyboard_check(vk_right) - keyboard_check(vk_left))
for (var i = 0; background_visible[i]; i++)
{
background_x[i] = parallax[i] * view_xview;
}
My only problem is figuring out how to make background[6], my foreground clouds "background", to still have horizontal movement.
I've used background_x[6] += 1 in a separate controller before, but this parallax code cancels it...
Is there any way to recode the for loop to have background[6] be excluded? Or... should I find a different route to have foreground moving clouds..?
Thank you for your help!