1 |
if keyboard_multicheck_pressed(0) |
2 |
{ |
3 |
instance_destroy() |
4 |
with (obj_yellowlogoINTRO) |
5 |
instance_destroy() |
6 |
var first_time = false |
7 |
if (!file_exists("Save.sav")) |
8 |
first_time = true |
9 |
if file_exists("Save.sav") |
10 |
{ |
11 |
var demo_check = false |
12 |
ini_open("Save.sav") |
13 |
demo_check = ini_key_exists("Save1", "Progress") |
14 |
if demo_check |
15 |
first_time = true |
16 |
ini_close() |
17 |
if demo_check |
18 |
file_rename("Save.sav", "Savedemo.sav") |
19 |
} |
20 |
if first_time |
21 |
room_goto(rm_mmfirst Main menu when there is no save) |
22 |
else |
23 |
room_goto(rm_mainmenu Main menu) |
24 |
audio_stop_sound(mus_intronoise) |
25 |
} |