how to use K2 games Games parallax background code example
Example 1: how to use K2 games Games parallax background
//Focal point layer (ground)
draw_background_tiled_horizontal(
bg_ex_3_3,
-view_xview[view_current] * 1.5,
-view_yview[view_current] + 700
);
Example 2: how to use K2 games Games parallax background
//Layer 3
draw_background_tiled_horizontal(
bg_ex_3_2,
view_xview[view_current] / 2.5,
(view_yview[view_current] / 10) + 300
);
Example 3: how to use K2 games Games parallax background
//Layer 1
draw_background_tiled_horizontal(
bg_ex_3_0,
view_xview[view_current] / 1.5,
(view_yview[view_current] / 2.5) + 175
);
//Layer 2
draw_background_tiled_horizontal(
bg_ex_3_1,
view_xview[view_current] / 2,
(view_yview[view_current] / 5) +250
);