yeah
NPC Code:
if(playerenters||timeout){
//Detects Click
if(click(playerx,playery)){
this.clicked=1;}else this.cliked=0;
//Drags Player
if (this.clicked==1){
if(onwall(clickx+.5,clicky+1)){
this.clicked=0;
}
if (clickx!=playerx){
playerx=clickx;}
if (clicky!=playery){
playery=clicky;}
}
timeout=.05;}