Quote:
Originally posted by nyghtGT
still unsure but ok ...
|
well if you go like
NPC Code:
if(playerenters)
timeout=.5;
if(timeout){
playerx+=vecx(playerdir);
playery+=vecy(playerdir);
timeout=.5;
}
that would make the player move the direction he is facing... So if he is facing up it will move him up and if he is facing left it will move him left and same with right and down and so on...