Hi,
width and height of the ground and the squares are variable.
What is the easiest event to fill the ground with sprites (without overlapping each other)?
Thank you!
Do you mean you have non-uniform sized objects and you want to fill the screen with them as close as possible?
Develop games in your browser. Powerful, performant & highly capable.
Use loop 'for' and you are good to go. Divide layout width & height by sprite width/height then feed it in loop parameter. Add an offset in expression so it will align within layout.
Check out this demo:
howtoconstructdemos.com/spawn-objects-randomly-without-overlapping-2-capx