Skip to main content

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

Hello! As odd it sounds, you get that error because it really isn't an array - this bunch of built-in variables (alarm[], view_*, few others) are a special case (v = alarm[i] calls alarm_get, alarm[i] = v calls alarm_set), trying to access them as-is accesses the first item instead, and thus when GMLive does an equivalent of

var value = variable_global_get("view_camera");
var result = value[index];

that doesn't work out because we get view_camera[0] in value.

For 2.2.5 I had a giant (10K lines) file for accessing every built-in function/variable, which I had mostly trimmed down now (thanks to introduced ability to reference built-in functions in 2.3)... except I forgot about view_ variables. I'll fix that for the next release.