| 1 |
draw_sprite(sprite_index, image_index, x, y); |
| 2 |
if (dont == 1 && instance_exists(OBJ_WRITER) == 0) |
| 3 |
{ |
| 4 |
global.interact = 1; |
| 5 |
dont = 2; |
| 6 |
with (obj_darksink) |
| 7 |
caster_stop(water); |
| 8 |
caster_pause(global.currentsong); |
| 9 |
acon = 1; |
| 10 |
} |
| 11 |
if (acon > 0) |
| 12 |
{ |
| 13 |
wcon = 0; |
| 14 |
if (acon == 1) |
| 15 |
{ |
| 16 |
if (aanim < 14) |
| 17 |
{ |
| 18 |
aanim += 0.1; |
| 19 |
} |
| 20 |
else |
| 21 |
{ |
| 22 |
aanim = 14; |
| 23 |
acon = 2; |
| 24 |
alarm[4] = 50; |
| 25 |
} |
| 26 |
} |
| 27 |
if (acon == 3) |
| 28 |
{ |
| 29 |
tr = caster_load("music/sfx_generate.ogg"); |
| 30 |
caster_play(tr, 0.9, 0.75); |
| 31 |
aanim = 0; |
| 32 |
acon = 4; |
| 33 |
alarm[4] = 50; |
| 34 |
} |
| 35 |
if (acon == 4) |
| 36 |
{ |
| 37 |
aanim += 0.334; |
| 38 |
if (aanim >= 7) |
| 39 |
aanim -= 2; |
| 40 |
} |
| 41 |
if (acon == 5) |
| 42 |
{ |
| 43 |
caster_free(tr); |
| 44 |
global.battlegroup = 85; |
| 45 |
global.mercy = 1; |
| 46 |
global.border = 0; |
| 47 |
global.flag[16 type_heart_transition] = 0; |
| 48 |
instance_create(0, 0, obj_battler); |
| 49 |
acon = 6; |
| 50 |
alarm[4] = 32; |
| 51 |
} |
| 52 |
if (acon < 7) |
| 53 |
global.interact = 1; |
| 54 |
if (acon == 7) |
| 55 |
{ |
| 56 |
with (obj_mainchara) |
| 57 |
uncan = 0; |
| 58 |
global.mercy = 0; |
| 59 |
caster_resume(global.currentsong); |
| 60 |
with (obj_darksink) |
| 61 |
wcon = 0; |
| 62 |
myinteract = 0; |
| 63 |
alarm[4] = 10; |
| 64 |
global.flag[486 truelab_sink_interact_count] = 10; |
| 65 |
global.flag[487 truelab_sink_key] = 3; |
| 66 |
if (obj_mainchara.x < 110) |
| 67 |
global.flag[487 truelab_sink_key] = 2; |
| 68 |
if (obj_mainchara.x < 75) |
| 69 |
global.flag[487 truelab_sink_key] = 1; |
| 70 |
event_user(0); |
| 71 |
global.flag[481 truelab_red_key_status] = 1; |
| 72 |
acon = -10; |
| 73 |
} |
| 74 |
if (acon == 1 || acon == 2) |
| 75 |
draw_sprite(spr_amalgam_sink1, floor(aanim), x + 6, y); |
| 76 |
if (acon == 4 || acon == 5 || acon == 6) |
| 77 |
draw_sprite(spr_amalgam_sink2, floor(aanim), x + 6, y); |
| 78 |
} |
| 79 |
if (wcon == 1) |
| 80 |
{ |
| 81 |
anim += 1; |
| 82 |
draw_sprite(spr_sink_water, floor(anim / 3), x + 10, y); |
| 83 |
} |
| 84 |
if (how_bad_me_key == 1) |
| 85 |
{ |
| 86 |
kanim += 0.1; |
| 87 |
draw_sprite_ext(spr_leverkey, floor(kanim), x + 13, y + 6, 1, 1, 0, c_red, 1); |
| 88 |
} |