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 = 0.5; |
7 | else |
8 | vspeed = 4; |
9 | g = collision_rectangle(x + 2, y + 2, x + 22, y + 22, obj_heartshot, 0, 1); |
10 | with (g) |
11 | instance_destroy(); |
12 | } |
13 | s += 1; |
14 | x = xstart + (sin(s / sp) * sf); |