1 |
with (obj_pl) |
2 |
{ |
3 |
if place_meeting(x, y, obj_water_collider) |
4 |
{ |
5 |
if (other.active == false) |
6 |
{ |
7 |
other.active = true |
8 |
audio_play_sound(snd_splash, 1, 0) |
9 |
} |
10 |
} |
11 |
else |
12 |
other.active = false |
13 |
} |
14 |
if (active == true) |
15 |
global.player_sprites = "water" |
16 |
else |
17 |
global.player_sprites = "dunescave" |
18 |
if (!instance_exists(obj_martlet_follower)) |
19 |
return; |
20 |
with (obj_martlet_follower) |
21 |
{ |
22 |
if place_meeting(x, y, obj_water_collider) |
23 |
{ |
24 |
if (sprites_water_override == false) |
25 |
{ |
26 |
sprites_water_override = true |
27 |
audio_play_sound(snd_splash, 1, 0) |
28 |
} |
29 |
} |
30 |
else |
31 |
sprites_water_override = 2 |
32 |
} |