function enemyShowerheadbombAI() { y_spd += global.g; if place_meeting(x, y + y_spd, oParentSolid) { while !place_meeting(x, y + sign(y_spd), oParentSolid) y += sign(y_spd); y_spd *= -bounce_factor; bounce_count++; if bounce_count >= 2 { hp = 0; is_dead = true; enemy_death(); exit; } } if place_meeting(x + x_spd, y, oParentSolid) { hp = 0; is_dead = true; enemy_death(); exit; } x += x_spd * global.time_scale; y += y_spd * global.time_scale; };