sRobotMine
0
-1
-3
0
oEnemy
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
event_inherited();
canbeX = 0;
myhealth = 1;
damage = 30;
stuntime = 4;
hpush = 6;
vpush = -3;
hitmissileexpl = 0;
hitsound = sndEHit1;
deathsound = sndElectricExpl;
canfreeze = 1;
platyoffset = -6;
frozenspr = sRobotMineFrozen;
flipx = 0;
target = 0;
state = 0;
statetime = 0;
alarm[0] = 60 + random(60);
hitemp = 1;
empspr = sRobotMineDisabled;
targetx = x;
targety = y;
startx = x;
starty = y;
currtgt = 0;
interval = 60;
moveratio = 0.1;
for (i = 0; i < 10; i += 1) {
tgtx[i] = x;
tgty[i] = y;
}
spark = -4;
1
603
7
0
0
-1
2
self
0
0
1
spark = instance_create(x, y, oFXAnimSpark);
spark.sprite_index = sRoboMineSpark;
spark.image_speed = 0.5;
spark.additive = 1;
spark.image_xscale = choose(1, -1);
spark.image_yscale = choose(1, -1);
spark.image_angle = random(360);
spark.depth = -5;
alarm[0] = 20 + random(40);
if (state == 100) alarm[0] = 10;
1
603
7
0
0
-1
2
self
0
0
1
if (state == 0) {
if (statetime == interval) {
currtgt += 1;
if (tgtx[currtgt] == startx && tgty[currtgt] == starty) currtgt = 0;
targetx = tgtx[currtgt];
targety = tgty[currtgt];
statetime = 0;
}
if (stun == 0 && frozen == 0) {
x = lerp(x, targetx, moveratio);
y = lerp(y, targety, moveratio);
}
}
if (state == 100) {
if (statetime == 1) sfx_play(sndElectricOverload);
flashing = 10;
canbehit = 0;
if (statetime > 120) event_user(1);
}
if (instance_exists(spark)) {
spark.x = x;
spark.y = y;
}
event_inherited();
1
603
7
0
0
-1
2
self
0
0
1
if (state != 100) {
state = 100;
statetime = 0;
alarm[0] = 1;
}
with (other) event_user(0);
1
603
7
0
0
-1
2
self
0
0
1
event_inherited();
if (state != 100) {
state = 100;
statetime = 0;
alarm[0] = 1;
}
1
603
7
0
0
-1
2
self
0
0
1
enemy_death2();
i = 0;
repeat (36) {
prj = instance_create(x, y, oRoboMineProj);
prj.direction = i * 10;
prj.speed = 3;
prj = instance_create(x, y, oRoboMineProj);
prj.direction = i * 10;
prj.speed = 2;
prj = instance_create(x, y, oRoboMineProj);
prj.direction = i * 10;
prj.speed = 1;
i += 1;
}
1
603
7
0
0
-1
2
self
0
0
1
event_inherited();
alarm[0] = 1;
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1