GMLscripts.com

June 23, 2007Bitwise Bonanza!

/news/images/blogicon-20070623.png Prepare for a bitwise bonanza! Eight new scripts, some of them showing off really strange ways bitwise operators can be used. First up, EyeGuy brings us two generalized bitwise rotation functions, rotate left and rotate right. Add to that three speedy scripts for 8-bit, 16-bit, and 32-bit bitwise reversal. And finally, we wrap up our bitwise theme with color manipulation scripts for color mixing, color scaling, and color multiplication.


June 17, 2007Math, Probability, and Number Conversion

/news/images/blogicon-20070617.png It's numbers week at GMLscripts.com with the addition of 12 new scripts. We start things off with scripts to compute the greatest common divisor and least common multiple of two integers. Next are a triplet of probability scripts, one to compute the number of combinations of elements in subsets of a given size, another to compute he number of possible permutations, and just for kicks, one to simulate dice rolls. The final seven are number conversion scripts: a pair for decimal to octal and octal to decimal conversions, one that converts numbers between any two bases, a pair that can convert a number to roman numerals or from roman numerals, one that formats numbers with decimal places and thousands seperators, and lastly a script to format date-time values into many different human readable forms.


June 11, 2007AI, Data Structures, and our 100th Script!

/news/images/blogicon-20070611.png Wow, this is a big week. We've hit our first major milestone: our 100th script! In honor of the occasion, a new script download feature has been enabled for the site. Wherever you see the script icon click it to download the script as a GML file that can be imported directly into your projects. No fuss, no muss.

Now for the new scripts. First up is a motion prediction script to help your AI predict where an instance is going to be in the future based on its speed, friction, and gravity settings. Next we have three scripts for use with ds_list data structures, one for saving, one for loading, and one for reversing list elements.

We continue the data structure theme with a script to swap keys and values in a ds_map data structure. And finally we round out these week's selection of data structure scripts with a pair of ds_grid scripts, one for translating (scrolling) data within a grid, and one to mirroring data within a grid horizontally and/or vertically. Thanks Leif902!


June 1, 2007Leif902 Onslaught Continues!

/news/images/blogicon-20070601.png This week it's another Leif902 onslaught! Leif was kind enough to submit so many scripts I can barely keep track of them all. We've got four simple yet handy new math scripts: is_power, is_even, is_odd, and point_in_circle. In addition, a script to compute the wavelength of a color has been added. And finally we've got a couple of new file handling scripts, one for writing unsigned integer words of any length, and one for reading them. Truth be told, the write script was posted a few weeks ago but I didn't get around to adding the read script until now for some reason. Mea culpa!