sGawron
0
-1
0
0
oEnemy
<undefined>
1
603
7
0
0
-1
2
other
0
0
1
action_inherited();
myhealth = 5;
damage = 8;
hitsound = sndEHit2;
deathsound = sndEDeath2;
platyoffset = -6;
frozenspr = sGawronFrozen;
flipx = 1;
state = 0;
active = 1;
if (x >= oCharacter.x) facing = -1;
if (x < oCharacter.x) facing = 1;
1
603
7
0
0
-1
2
self
0
0
1
action_inherited();
if (active == 1 && stun == 0 && frozen == 0) {
if (state == 0) {
image_speed = 0.15; // og 0
image_index = 1;
vspeed = -3;
state = 1;
}
if (state == 1) {
vspeed = -3;
if (y <= oCharacter.y - 26) state = 2; // og oCharacter.y - 30
//if (vspeed < 0) vspeed += 0.02;
}
if (state == 2) {
image_speed = 0.2; // OG 0.4
vspeed = 0;
hspeed = facing * 2.5;
}
} else speed = 0;
if (state == 100) enemy_death();
1
603
7
0
0
-1
2
self
0
0
1
instance_destroy();
// I wrote this without realizing Gawrons don't need the edge case lol
/*if (!oControl.widescreen) {
instance_destroy();
} else {
if (x < (-oControl.widescreen_space/2)) || (x > (room_width + (oControl.widescreen_space/2))) {
instance_destroy();
}
}
1
603
7
0
0
-1
2
self
0
0
1
draw_sprite_ext(sprite_index, image_index, x, y + sin(x/10), facing, image_yscale, image_angle, image_blend, image_alpha);
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1