I'm using this code on water objects:
if place_meeting(x,y,obj_Link){
if (!colliding) {
global.wading=true;
}
colliding=true;
} else {
if (colliding) {
global.wading=false;
}
colliding=false;
}
to check when Link is wading through shallow water. The only problem is that as he walks across a horizontal stretch of water objects, global.wading will flicker between true and false, causing the ripple and sound effect to turn on and off sporadically. This doesn't happen when walking vertically. Any thoughts?