Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

#gmcr
var arr = argument0;
var len = array_length_1d(arr);
for (var i = 0; i < len; i++) {    
    yield arr[i];
}

Given code will generate gml with mispell function call. It calls array_wget instead of array_get

(+1)

array_wget is to be a custom script that just has return argument0[argument1] inside.

array_get is currently bugged and returns undefined if a variable is not an array (which makes for some confusing bugs).

I should probably publish a helper extension with predefined possible scripts for these things