Description: Easy D&D access to many useful data handling techniques.
Size: 126 Kb
Please watch brief video for demo
Normally, I prefer to use code when I'm using Game Maker. But when I use arrays, I'm bothered by the fact that many of the built-in conviniences of the data structures don't exist. What do unregistered users do?
I wrote this library to allow you to very quickly create, populate, and manipulate arrays. I've found it so handy, I wish it had come with GM! This library has been updated to v3 with a small bugfix, a larger bugfix based on a GM bug, and a new sorting function!
I'd ask that you watch the brief (2mb) demo video; I think you'll find the features intriguing!
Click to View The Demo Video (With sound)
And here's the download link: arrayLib.lib
If I still haven't got you interested, heres the full list of available actions:
Set Value at Position
Remove Value at Position
Insert Value at Position
Populate Array With Values
Get Value at Position
Get First Value
Get Last Value
Get Next Value
Get Previous Value
Set 'Current' Index
Draw Value at Position
Draw Entire Array
If you spot any bugs, please let me know immediately--I've tested this many times, but still... Thanks.
~When you populate an array, values are strings, even if you added 'numbers'. Be sure to use real() on the get() results as needed.
~Actions like "get previous" and "find next" return -4 if none is found.
Also, the lib should have a "v3" at the bottom after "Tsa05 Arrays Library" (not seen in the video).
Edited by tsa05, 02 February 2007 - 08:06 PM.