1 |
if (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_heart, 0, 1)) |
2 |
event_user(11); |
3 |
if (collision_rectangle(x + 2, y + 2, x + 22, y + 22, obj_heartshot, 0, 1)) |
4 |
{ |
5 |
if (instance_exists(obj_ratingsmaster)) |
6 |
global.ratings += 20; |
7 |
g = collision_rectangle(x + 2, y + 2, x + 22, y + 22, obj_heartshot, 0, 1); |
8 |
snd_play(snd_mtt_burst); |
9 |
with (g) |
10 |
instance_destroy(); |
11 |
bp = instance_create(x, y, obj_brokenpiece); |
12 |
if (instance_exists(bp)) |
13 |
bp.sprite_index = sprite_index; |
14 |
instance_destroy(); |
15 |
} |
16 |
s += 1; |
17 |
x = xstart + (sin(s / sp) * sf); |