As you all know, the onPlayerTouchsMe() only works if the player runs into the NPC.
How would I script the NPC to check if the player is in the x, y of the object.
In this case, block.png
PHP Code:
function onCreated(){
setImg("block.png");
setTimer(1);
}
function onTimeOut(){
destroy();
}
function onPlayerTouchsMe(){
player.chat = "HIT";
}