I'm back again! Hit another block that is confusing me.
At the start of the layout I spawn two random groups of "gem" sprites. (Right now they are two different sprites so I can have more control over how frequently the larger gems appear.)
The gems:
Can't overlap each other
Can't stick outside the board (or overlap with offboard sprites)
Can't overlap the yellow "rock tiles," tiles that are on frame 5
Must stick in the grid formation (they are currently doing that at least)
And additionally, after they're all spawned I have to be able to keep track of how many exist
Right now they're spawning on top of each other, spawning partially outside the board, and spawning on top of tiles I don't want them to spawn on.
I was trying to do a system while gem is overlapping thing it shouldn't be the gem position is put randomly someplace else, in hopes that it would just keep shifting them around until they're not breaking any rules. But this really doesn't seem to make any difference. I think I'm probably just making a dumb mistake or missing something. I feel like I hit a wall again so I'm posting this in hopes someone can help me out! Thank you!
https://www.dropbox.com/s/9r1xozyi0e9by ... .capx?dl=0