Daniel Mallett
Member
I was just looking at a GMS2 best practice guide to make sure I'm on track. I did not know there was an array_create() function. But I guess this makes sense in situations when you know the maximum size. In discovering this I found array_set(variable, index);
My question is what is the difference between array_set(variable, index); and variable[?] = x;
I'm finding out all sorts of stuff I didn't know such as array = 0; I didn't know you could do this. I thought you had to loop.
If anyone could explain this I would be most grateful. Any other optimization tips would also be most welcome.
Edit: sorry doing a columbo here. Does anyone know of any plans to tighten up the syntax in GM?
My question is what is the difference between array_set(variable, index); and variable[?] = x;
I'm finding out all sorts of stuff I didn't know such as array = 0; I didn't know you could do this. I thought you had to loop.
If anyone could explain this I would be most grateful. Any other optimization tips would also be most welcome.
Edit: sorry doing a columbo here. Does anyone know of any plans to tighten up the syntax in GM?
Last edited: