Thread: vecx and vecy
View Single Post
  #1  
Old 08-14-2002, 09:07 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by SingleChance
Is that the move script somet like this
move 3,4,2,6;
Not quite shore but thats how u do movie scene's i used to do em like this
playerx=;sprite=0;
lol
lol, thats old school


the vecx and vecy are used in mostly movement scripts


NPC Code:

vecx vecy dir
0 -1 0
-1 0 1
0 1 2
1 0 3



when you move, then it basically does this
playerx+=vecx(playerdir);
playery+=vecy(playerdir);

so if you move up (dir 0), you will get 0 added to your x value, and -1 added to your y value
__________________
[signature]insert here[/signature]
Reply With Quote