![]() |
vecx and vecy
I need help getting my npc to drop a weapon in front of the player. plz help me!
|
i still dont get it but here
http://forums.graal2001.com/forums/s...der=descending |
I found it there.. its for a restaraunt thing
|
kk i still have to learn it x.x
|
its a built-in array
vecx vecy 0 0 -1 1 -1 0 2 0 1 3 1 0 |
Quote:
*edit* nm, i see, those are the directions |
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 |
Quote:
the vecx and vecy are used in mostly movement scripts NPC Code: 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 |
Quote:
0 = axis 3 = y If it were -3, I think it would be X.. im not sure *cries* I hate math |
its called a grid
NPC Code: with the (0,3) you would move 0 spaces on the x axis and 3 on the Y axis, which is equal to up :) lol :p |
it's called a cartesian plane, or coordinate plane....they're a lot more fun to play with in Calculus, trust me ;-)
|
NPC Code:Input vecx vecy |
Quote:
|
Quote:
anyways i liked messing with them when i had a graphing calculator :) that was kinda fun anyways, as for osrs, how is your post going to help anyone?? you didnt even explain anything, just the array setup Xx |
Screenies explanation was best one x.X But how can I use it in script?
Say I want player to move up, when he wants to move up... what flag do I use, and what script? x.X |
Quote:
|
| All times are GMT +2. The time now is 06:01 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.