View Single Post
  #6  
Old 04-29-2011, 11:05 PM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
Nice job bringing up another old thread!

Anywho, vex/vecy will return the direction in which the operation points. So, let's say your xVal is 32 and you want it to be 30. So vecx( 32-30) would give you -1 since you are to move left. Up would -1 of vecy and so forth, if you aren't moving it will return 0. By graal magic it works with direction values too, 0-3. So if your face south your vecx would be 0 and vecy would be 1.
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
Reply With Quote