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;