Posho
Member
Hello,
I'm stuck with the simplest of things. I'm looping through the whole room to add objects on empty spots like this:
^ THIS works, but if I change the if condition from if (place_free(i, j)) to if (!place_free(i, j)) to add objects on top of non-empty spots it doesn't do anything. Why?
I'm stuck with the simplest of things. I'm looping through the whole room to add objects on empty spots like this:
GML:
for (var i=0; i<room_width; i+=len)
for (var j=0; j<room_height; j+=len)
if (place_free(i, j))
instance_create_depth(i, j, 8, obj_water);