sA2WJHatch
0
-1
-101
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
image_speed = 0;
active = 0;
enabled = 0;
state = 0;
lightframe = 0;
engineframe = 0;
alarm[1] = 200;
1
603
7
0
0
-1
2
self
0
0
1
alarm[0] = 1;
sfx_play(sndA2WJStartup);
1
603
7
0
0
-1
2
self
0
0
1
if ((instance_number(oMAlpha) > 0) || (instance_number(oMAlphaTriggerProx) > 0)) {
active = 0;
} else active = 1;
alarm[1] = 100; // og 120
1
603
7
0
0
-1
2
self
0
0
1
alarm[0] = 2;
engineframe = !engineframe;
1
603
7
0
0
-1
2
self
0
0
1
if (active) {
lightframe = !lightframe;
if (collision_line(x - 4, y - 4, x + 4, y - 4, oCharacter, false, true)) {
enabled = 1;
} else enabled = 0;
if (state == 0) {
if (enabled == 1 && image_index < 2) image_index += 0.5;
if (enabled == 0 && image_index > 0.2) image_index -= 0.2;
if (enabled && oCharacter.state == 23) {
state = 1;
alarm[2] = 20;
with (oCharacter) {
state = 50;
statetime = 0;
}
global.event[102] = 1;
sfx_play(sndMorphBallSlot);
}
}
if (state == 1) {
if (image_index < 8) image_index += 0.5;
if (oCharacter.x > x) with (oCharacter) x -= 1;
if (oCharacter.x < x) with (oCharacter) x += 1;
}
} // if (active)
1
603
7
0
0
-1
2
self
0
0
1
draw_sprite(sprite_index, -1, x, y);
if (active) {
draw_sprite(sA2WJLight, lightframe, x - 24, y);
if (state == 1) draw_sprite(sA2WJEngine, engineframe, x - 8, y + 16);
}
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1