| 1 | if (fade_in == true) |
| 2 | { |
| 3 | image_speed = 0; |
| 4 | if (image_alpha < 1) |
| 5 | { |
| 6 | image_alpha += 0.2; |
| 7 | } |
| 8 | else |
| 9 | { |
| 10 | fade_in = false; |
| 11 | vspeed = 3; |
| 12 | sprite_index = spr_stresswalk; |
| 13 | obj_dunes_13_elevator.image_speed = -0.3; |
| 14 | audio_play_sound(snd_elevator_open, 1, 0); |
| 15 | } |
| 16 | exit; |
| 17 | } |
| 18 | else |
| 19 | { |
| 20 | image_speed = 0.4; |
| 21 | if (y > 185) |
| 22 | { |
| 23 | vspeed = 0; |
| 24 | hspeed = 10; |
| 25 | if (image_speed < 1) |
| 26 | image_speed += 0.1; |
| 27 | if (x > 320) |
| 28 | { |
| 29 | global.dunes_flag[4] = 3; |
| 30 | scr_cutscene_end(); |
| 31 | instance_destroy(); |
| 32 | instance_destroy(obj_npc_clover_dunes_13); |
| 33 | obj_pl.image_alpha = 1; |
| 34 | obj_pl.direction = 90; |
| 35 | } |
| 36 | } |
| 37 | } |