| 1 |
var layer_scroll_speed; |
| 2 |
layer_scroll_speed[0] = 0.1; |
| 3 |
layer_scroll_speed[1] = 0.2; |
| 4 |
layer_scroll_speed[2] = 0.3; |
| 5 |
layer_scroll_speed[3] = 0.4; |
| 6 |
layer_scroll_speed[4] = 0.7; |
| 7 |
layer_scroll_speed[5] = 3; |
| 8 |
for (var i = 0; i < 6; i++) |
| 9 |
__background_set(e__BG.X, i, __background_get(UnknownEnum.Value_3, i) - layer_scroll_speed[i]); |
| 10 |
if (bg_image_index < 5) |
| 11 |
bg_image_index += 0.1; |
| 12 |
else |
| 13 |
bg_image_index = 1; |
| 14 |
__background_set(e__BG.Index, 1, asset_get_index("hotland_background_" + string(floor(bg_image_index)))); |
| 15 |
|
| 16 |
enum UnknownEnum |
| 17 |
{ |
| 18 |
Value_2 = 2, |
| 19 |
Value_3 |
| 20 |
} |
| 21 |
|
| 22 |
enum e__BG |
| 23 |
{ |
| 24 |
Visible, |
| 25 |
Foreground, |
| 26 |
Index, |
| 27 |
X, |
| 28 |
Y, |
| 29 |
Width, |
| 30 |
Height, |
| 31 |
HTiled, |
| 32 |
VTiled, |
| 33 |
XScale, |
| 34 |
YScale, |
| 35 |
HSpeed, |
| 36 |
VSpeed, |
| 37 |
Blend, |
| 38 |
Alpha |
| 39 |
} |