View Single Post
  #37  
Old 07-25-2001, 12:56 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
KJL was right!

the direction setting portion of player movement (I don't remember if I did it this way for bomys, or speed based) is like this:
NPC Code:

playerdir = keydown(3)? 3 :
keydown(2)? 2 :
keydown(1)? 1 : 0;


So your direction will default to the highest key you are holding down, which makes 3, or right, the most often used playerdir, and 0, or up, the least often used.

Last edited by kyle0654; 07-25-2001 at 01:34 AM..
Reply With Quote