![]() |
Okay, any other way I can change the zoom axis? That's how I want it but its not as smooth as I need it to be (when it's further from the player it gets bigger)
|
Quote:
PHP Code:
|
ty, i got a problem over here, that the "spin" isnt showing other players (other players see it as not spinning)
any way? |
Quote:
Why not just do PHP Code:
it's Pythagoras' theorem:a^2+b^2 = c^2 which re-arranges to c = sqrt(a^2+b^2) and you can find the square root of something without the square root function by using powers which is 0.5 so it's c = (a^2+b^2)^0.5 Only reason i'm saying all this is because I beleive anyone who's striving to be a decent programmer should have a fair bit of base maths knowledge. |
Quote:
im pretty familiar with such stuff but im always too lazy to either realize that or fix it into another, nicer looking way. but thats a personal problem of mine, just like i dont realize binomial series that fast and keep calculating them the "normal" way and getting stuck. but during the last year i somewhat improved on that (on realizing such mathematical stuff) also you are right that people wanting to program should get familiar with that at some time, as it could get annoying for them to keep looking up every formula they will need at some time. |
Thanks again guys,
alright so most-likely I was trying to build a movements System. But thus so far all I could do was making the player go at a certain speed using player.x += 0.7; something around this by using keyboard. but it's still coming thru the walls, I don't want to make it for every level as in PHP Code:
|
Quote:
PHP Code:
http://forums.graalonline.com/forums...ad.php?t=78043 |
I also place alot of emphasis on people making use of vecx and vecy, without them you'll have duplicated code and I wont be happy, so make me happy and use them. kthx
|
An example for using vecx() and vecy():
http://forums.graalonline.com/forums...hp?t=134263215 |
i don't under stand a single thing that's why i asked snk for help to learn how to script -_-
|
Quote:
|
alright, last thing of the day, how to set a custom projectile? Not guns projectile. I want something for example, when we shoot it will follow the mouse x and y starting from the player.
I did try using for(a = a + 1) for every dir but it goes in angles, which made me laugh lol. |
Quote:
PHP Code:
http://forums.graalonline.com/forums...hp?t=134259144 |
I'd not really like to Copy & Paste, more into understanding them.
Well thanks again anyways, but onAddDamage must have (@ "WeaponName").onAddDamage() as a public function, it's pretty annoying, how can I remove the weapon name thingy? |
in the actual weapon (WeaponName) you can do something like:
PHP Code:
PHP Code:
ps: sorry that i couldnt get on your server again, internet is acting weird. will come back later |
| All times are GMT. The time now is 01:23 PM. |
Powered by vBulletin/Copyright ©2000 - 2025, vBulletin Solutions Inc.