Make the NPC move on the x axis
I didn't test this code, so I have no idea if this actually works.PHP Code:
//Coded by iMask
function onPlayerEnters () {
for (this.n=5;this.n<30;this.n++) {
this.x=this.n;
sleep (0.1);
this.chat = "I am now on "@this.n@" of the x coordinate of this level!";
}
}