NPC Code:if(playerdir=0&&keydown(0)){
if(playerdir=0&&keydown(0)){
NPC Code:if(playerdir=0){ if(keydown(0)){
if(playerdir=0){ if(keydown(0)){