1 |
function cutscene_move_all(argument0, argument1, argument2, argument3, argument4, argument5, argument6) //gml_Script_cutscene_move_all |
2 |
{ |
3 |
if (argument0 == false && (!instance_exists(obj_camera))) |
4 |
{ |
5 |
instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_camera) |
6 |
__view_set((9 << 0), 0, 1120) |
7 |
} |
8 |
with (all) |
9 |
{ |
10 |
if argument5 |
11 |
x += argument1 |
12 |
if argument6 |
13 |
y += argument1 |
14 |
if (argument0 == false && object_index == obj_camera) |
15 |
{ |
16 |
x = xprevious |
17 |
y = yprevious |
18 |
} |
19 |
} |
20 |
for (var i = argument3; i <= argument4; i++) |
21 |
{ |
22 |
if argument5 |
23 |
tile_layer_shift(i, argument1, 0) |
24 |
if argument6 |
25 |
tile_layer_shift(i, 0, argument1) |
26 |
} |
27 |
cutscene_timer += abs(argument1) |
28 |
if (cutscene_timer >= argument2) |
29 |
{ |
30 |
cutscene_timer = 0 |
31 |
cutscene_advance() |
32 |
return true; |
33 |
} |
34 |
} |