Thread: scripting?
View Single Post
  #7  
Old 09-27-2001, 07:10 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Re: ok

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...
__________________
Thanks,
-KJL
Reply With Quote