I decided to completely remake my previous generation system that I didn’t like. The new one uses a extention called CreateMultipleCopiesofObject , which basicaly just copies Objects for you. So the only thing I have in my events is this:
Now I wanted to do, is randomly spawn the walls on the grid tiles but the problem is that all 100 walls spawned on one Grid tile:
If you don’t conditionally specify an object, GDevelop will take the first on it comes across. And in the case of the loop, it’s the same one 100 times. You want to select a random GridTileObject and place the Wallabove object on that.
Fix it with the following (the delete prevents multiple Wallabove objects being placed on the same GridTile object):
Thx, saved me for the second time