| 1 | rotspeed = 32; |
| 2 | x = (obj_heart.x - 4) + random(8); |
| 3 | y = (obj_heart.y - 4) + random(8); |
| 4 | image_alpha = 0; |
| 5 | snd_play(snd_spearappear); |
| 6 | offsetdir = point_direction(x, y, obj_heart.x, obj_heart.y); |
| 7 | x += lengthdir_x(140, offsetdir); |
| 8 | y += lengthdir_y(140, offsetdir); |
| 9 | direction = offsetdir; |
| 10 | speed = 4; |
| 11 | friction = 0.2; |
| 12 | dmg = 7; |
| 13 | deactivate = 0; |
| 14 | if (instance_exists(obj_undyne_ex)) |
| 15 | dmg = 11; |