Check out example codes for "how to use K2 games Games parallax background". It will help you in understanding the concepts better.

Code Example 1

//Focal point layer (ground)
draw_background_tiled_horizontal(
    bg_ex_3_3,
    -view_xview[view_current] * 1.5,
    -view_yview[view_current] + 700
);

Code Example 2

//Layer 3
draw_background_tiled_horizontal(
    bg_ex_3_2,
    view_xview[view_current] / 2.5,
    (view_yview[view_current] / 10) + 300
);

Code Example 3

//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
);

Learn ReactJs, React Native from akashmittal.com