![]() |
Quote:
|
After training a bit with vecx and vecy, still understand nothing :/ I'd really appreciate someone teaching it for me more in an "easy" way. I'm trying to start making the melee system for the server, but it's really annoying setting coordinates so I thought vecx and vecy would help.
|
Quote:
http://i.imgur.com/fabW6.png |
Quote:
|
I still don't see how to use it, or rather where to use it. Is it like player.dir? Why not just set player.dir = 1;?
|
Quote:
PHP Code:
if the players dir is 1: x will lower by -1, y will raise by 0 (player walks to the left) if the players dir is 2: x will raise by 0, y will raise by 1 (player walks down) if the players dir is 3: x will raise by 1, y will raise by 0 (player walks to the right) |
Quote:
|
Quote:
|
Quote:
|
I really want to learn to script but It's so confusing, I just can't focus.
|
Quote:
|
Quote:
i will also be thanking you john and emera after teaching me gs2 like you currently are! ill create my own thread and do like john :3 |
Quote:
and maybe you should go on learning before creating such a thread ;) for the help you already got one ^^ |
nuuu callimuc u and emera help i was just commenting on the thread!
i said "u john and emera" i meant u callimuc and emera, u know i always respect every one thats nice/kind! |
Math.sin(float) - returns float
Math.cos(float) - returns float Math.tan(float) - returns float You should add these to the calculator :) |
| All times are GMT. The time now is 12:32 AM. |
Powered by vBulletin/Copyright ©2000 - 2025, vBulletin Solutions Inc.