1 | function cutscene_change_room() |
2 | { |
3 | if (room == argument[0]) |
4 | { |
5 | cutscene_advance(); |
6 | return true; |
7 | } |
8 | if (!instance_exists(obj_transition)) |
9 | { |
10 | var trn = instance_create(0, 0, obj_transition); |
11 | with (trn) |
12 | { |
13 | newRoom = argument[0]; |
14 | xx = argument[1]; |
15 | yy = argument[2]; |
16 | fade_in_speed = argument[3]; |
17 | fade_out_speed = argument[3] * 1.5; |
18 | if (argument_count > 4) |
19 | fade_out_wait = argument[4]; |
20 | } |
21 | } |
22 | } |