why dont you try this:
NPC Code:
if (playerenters||created) {timeout = .1;
}
if (timeout) {
this.movex=random(-1,1.1);
this.movey=random(-1,1.1);
if (this.movex>=0) {this.dir=3;
}
if (this.movex<0) {this.dir=1;
}
if (this.dir=1) {setimg <fishleft>;
}
if (this.dir=3) {setimg <fishright>;
}
if (onwater(x+this.movex,y+this.movey)) {
move this.movex,this.movey,1,4;
sleep 1;
}
timeout = .1;
}
that will make your fish wonder around aimlessly on the water.
not a whole lot to it. this thread didnt need to be 3 pages long.