Thread: Vecx and Vecy
View Single Post
  #7  
Old 09-06-2002, 08:12 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by haunter
So vecx and vecy are for moving the player?
not always.
you can also use them for detecting tiles infront of the players dir.
EXAMPLE:
NPC Code:

hitobjects 2,playerx+1.5+vecx(playerdir)*2,playery+2+vecy(pla yerdir)*2;

Reply With Quote