sTPO 0 -1 -3 0 oEnemy <undefined> 1 603 7 0 0 -1 2 self 0 0 1 action_inherited(); makeActive(); setCollisionBounds(-16, -8, 16, 8); myhealth = 30; damage = 16; if (oControl.mod_randomgamebool == 1 && (global.wbeam == 0 || global.sbeam == 0 || global.pbeam == 0)){ freezehp = floor(myhealth * .15); if (freezehp < 1) freezehp = 1; } //nerfed frozen enemies in random games hitsound = sndRobotHit4; deathsound = sndRobotHit2; canfreeze = 1; hitmissileexpl = 0; platyoffset = -3; frozenspr = sTPOFrozen; target = 0; canattack = 1; flipx = 0; state = 1; alarm[0] = 60 + random(60); image_speed = 0.5; hitemp = 1; empspr = sTPO2Disabled; 1 603 7 0 0 -1 2 self 0 0 1 alarm[0] = 60 + random(60); facing = -facing; 1 603 7 0 0 -1 2 self 0 0 1 action_inherited(); canbeX = 0; enemy_active_check(18); enemy_target_check(120, 0); if (active == 1 && frozen == 0) { if (state == 1) { xVel = 1.5 * facing; if (isCollisionRight(2) && facing == 1) facing = -1; if (isCollisionLeft(2) && facing == -1) facing = 1; if (target == 1) { if (oCharacter.y - 16 > y) yVel = 0.2; if (oCharacter.y - 16 < y) yVel = -0.2; } else yVel = 0; } if (stun == 0) moveTo(xVel, yVel); } if (state == 100) { enemy_death(); repeat (4) instance_create(x, y, oDebris); obj = instance_create(x - 4, y, oTPO2); obj.vspeed = -2; obj = instance_create(x + 4, y, oTPO2); obj.vspeed = 2; } 1 603 7 0 0 -1 2 self 0 0 1 event_inherited(); emp.x -= 8; emp.collisionBoundsOffsetLeftX = 3; emp.collisionBoundsOffsetTopY = 3; emp.collisionBoundsOffsetRightX = 3; emp.collisionBoundsOffsetBottomY = 3; emp2 = instance_create(x + 8, y, oEnemyDisabled); emp2.image_xscale = facing; emp2.sprite_index = empspr; emp2.image_index = image_index; emp2.mask_index = empspr; emp2.xVel = xVel / 2 * -1; emp2.yVel = yVel / 2; emp2.collisionBoundsOffsetLeftX = 3; emp2.collisionBoundsOffsetTopY = 3; emp2.collisionBoundsOffsetRightX = 3; emp2.collisionBoundsOffsetBottomY = 3; 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1