C
Ctl-F
Guest
Hey guys, Ctl-F here
So here's my problem:
I have been making a script bundle to add functionality to Game Maker and one of my core purposes is to make it compatible with all versions of Game Maker from version 8.0 and onward. I have spent several days working on this script bundle making sure to use features of GML that are compatible forwards and backwards and I realized that array_length_1d doesn't exist in GM8. I looked at GM8's Manual, Google, and YouTube, and I can't seem to find any technique that is GM8 friendly that returns the length of a 1 dimensional array. Do you guys know of any way to find the length of a 1 dimensional array in a GM8 friendly way?
I know one common practice in GM8 is to keep a second variable when creating the array that stores the length. Implementing this now would take a long time and is a last resort only.
Thanks
So here's my problem:
I have been making a script bundle to add functionality to Game Maker and one of my core purposes is to make it compatible with all versions of Game Maker from version 8.0 and onward. I have spent several days working on this script bundle making sure to use features of GML that are compatible forwards and backwards and I realized that array_length_1d doesn't exist in GM8. I looked at GM8's Manual, Google, and YouTube, and I can't seem to find any technique that is GM8 friendly that returns the length of a 1 dimensional array. Do you guys know of any way to find the length of a 1 dimensional array in a GM8 friendly way?
I know one common practice in GM8 is to keep a second variable when creating the array that stores the length. Implementing this now would take a long time and is a last resort only.
Thanks