Hello, I'm trying to cover the whole layout with squares by creating objects at coordinates X and Y in the loop. I understand, that there should be cycle in cycle to jump from first row to next one. It works for the first X row, but I can't make it work for next ones (change Y coordinate and start creating new sprites on X coordinate)
Here is my c3p https://www.dropbox.com/scl/fi/a3ovo6q4wzygoy93i9amq/Fill-Layout-1.c3p?rlkey=kcpgprpovtc3dadauesp5t552&st=3mg8vpo6&dl=0
Develop games in your browser. Powerful, performant & highly capable.
Or if you want to use just one loop.
Start of layout Repeat layoutWidth*layoutHeight/16/16 — create sprite at 8+loopindex%(layoutWidth/16)*16, 8+int(loopindex/(layoutWidth/16))*16
Thank you guys so much! igortyhon, R0J0hound