event_inherited(); if (!instance_exists(obj_spamton_attack_mode)) exit; if (obj_spamton_attack_mode.state == 2) { if (x > ((obj_spamton_attack_mode.x + obj_spamton_attack_mode.mouthx) - 50)) y += clamp((obj_spamton_attack_mode.y + obj_spamton_attack_mode.mouthy) - y, -5, 5); if (x < ((obj_spamton_attack_mode.x + obj_spamton_attack_mode.mouthx) - 10)) { direction = point_direction(x, y, obj_spamton_attack_mode.x + obj_spamton_attack_mode.mouthx, obj_spamton_attack_mode.y + obj_spamton_attack_mode.mouthy); friction = -0.1; } } else { friction = 0; }