Don't disregard my post actually! Lol. For some reason, when I try to make an NPC move, it always returns error: blocking, no matter the x/y input or it's origin x/y.. Anyone know the cause of this? Could it be because I'm trying to place it on a gmap? Also, it doesn't only work with pics1 type tiles, does it.. ?
Come to the conclusion that it's neither of the things I mentioned. Anything else it could be.. ?
Posting my class code for reference:
PHP Code:
function onPlayerchats()
{
if ( player.chat == "/destroy" && player.account == "DeCeaseD") destroy();
}
//#CLIENTSIDE
function onCreated()
{
this.join("astar");
showCharacter();
this.plyr = findnearestplayer(this.x, this.y);
moveTo( this.plyr.x, this.plyr.y);
}
Also, note that I am placing these NPC's using a class spawner, and not actually adding them to the level via level editor. Could this be what's wrong?