Quote:
Originally Posted by Devil_Lord2
It sets off both water and wall,
should I only have it check walls?
onwall2(xvalue,yvaluse,16,16); ?
Is it counting it self a wall?
I tried onwall(xvalue+.8,yvaluse+.8);
but that didn't seem to work haha..
|
PHP Code:
if (!onwall2(newx,newy,3,4)) {
// proceed with walking
}
Onwall2 width and height is in tiles. Just adjust the 3 and 4 to the specific size of the cow, especially for each direction where the NPCs proportions change.