1 | if (collision_rectangle(x + 5, y + 5, x + 15, y + 15, obj_tileguy, 0, 1)) |
2 | { |
3 | if (splash == 0) |
4 | { |
5 | snd_play(snd_splash); |
6 | splash = 1; |
7 | } |
8 | } |
9 | else |
10 | { |
11 | splash = 0; |
12 | } |