1 | if (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_heart, 0, 1)) |
2 | room_restart(); |
3 | if (collision_rectangle(x + 2, y + 2, x + 22, y + 22, obj_heartshot, 0, 1)) |
4 | { |
5 | if (vspeed > 0.5) |
6 | vspeed = 2; |
7 | g = collision_rectangle(x + 2, y + 2, x + 22, y + 22, obj_heartshot, 0, 1); |
8 | with (g) |
9 | instance_destroy(); |
10 | } |
11 | s += 1; |
12 | x = xstart + (sin(s / sp) * sf); |