![]() |
|
09-30-2012
|
151 |
|
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
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)
|
|
09-30-2012
|
152 | |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
PHP Code:
|
|
|
09-30-2012
|
153 |
|
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
ty, i got a problem over here, that the "spin" isnt showing other players (other players see it as not spinning) any way? |
|
09-30-2012
|
154 | |
|
The muffin man
Join Date: Sep 2011
Location: Burger Refuge
Posts: 2,262
|
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. |
|
|
10-01-2012
|
155 | |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
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. |
|
|
10-03-2012
|
156 |
|
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
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:
|
|
10-03-2012
|
157 | |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
PHP Code:
http://forums.graalonline.com/forums...ad.php?t=78043 |
|
|
10-03-2012
|
158 |
|
The muffin man
Join Date: Sep 2011
Location: Burger Refuge
Posts: 2,262
|
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
|
|
10-03-2012
|
159 |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
|
|
10-06-2012
|
160 |
|
scripture
Join Date: Jul 2012
Location: United Kingdom
Posts: 237
|
i don't under stand a single thing that's why i asked snk for help to learn how to script -_-
|
|
10-06-2012
|
161 |
|
The muffin man
Join Date: Sep 2011
Location: Burger Refuge
Posts: 2,262
|
|
|
10-06-2012
|
162 |
|
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
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. |
|
10-06-2012
|
163 | |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
PHP Code:
http://forums.graalonline.com/forums...hp?t=134259144 |
|
|
10-07-2012
|
164 |
|
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
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? |
|
10-07-2012
|
165 |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
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 |