![]() |
Useful functions
Some general useful functions in GS2 :) (Some of them are for compatibility with JS/PHP/etc others are just good)
PHP Code:
|
Oi! Very nice ;)
|
Not bad! :)
Some of these have been released by other people before (meaning, they made the same thing, not that you stole the script). By the way, you have PHP Code:
|
Ah yeah, I used to have rand.seed=x but it doesn't really change anything so I took it out for effciency's sake. Edited the post.
|
Quote:
|
PHP Code:
|
PHP Code:
Simply for compatibility with your almighty ECMAScript Standards? ;) |
PHP Code:
PHP Code:
|
Quote:
Just for that, you get this special version of atan2 as your prize! PHP Code:
|
There's degtorad and radtodeg built in.
Also, why have this? Besides the fact you lose 2 letters -.- PHP Code:
PHP Code:
|
Quote:
|
ECMAScript compatibility, if you don't like it, don't use my code. Simple.
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 11:33 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.