| 1 | alarm[3] = 4; |
| 2 | if (instance_exists(obj_heart)) |
| 3 | { |
| 4 | if (obj_heart.x < x) |
| 5 | hspeed -= 0.4; |
| 6 | else |
| 7 | hspeed += 0.4; |
| 8 | if (gravity == 0 && obj_heart.y < y && abs(x - obj_heart.x) < 50) |
| 9 | { |
| 10 | gravity = 0.22; |
| 11 | gravity_direction = 270; |
| 12 | vspeed = -5; |
| 13 | sprite_index = spr_tinypomjump; |
| 14 | } |
| 15 | } |