scorpafied
Member
ok so what im trying to do is create a global array, and assign each index with a new object so i can put variables on. the goal of this essentially is im trying to create a better level unlocking system then i currently have which isnt quite so linear.
im still new to gml, in other languages id write this:
then in the draw event i can check if something is unlocked or beaten. and assign the sprite accordingly. trying to work out how to do it gml, but cant for the life of me work it out. can someone help?
im still new to gml, in other languages id write this:
Code:
for(var i =1; i>=4; i++){
global.lvlData[i] = new Object();
if(i!=1){
global.lvlData[i].unlocked = 0;
global.lvlData[i].beat = 0;
} else global.lvlData[i].unlocked = 1;
}