I need to know how set automatically planetoids around like in this picture, my real game layout is too big and distance between planetoids belt and sun is too far to set every planetoid manually
bump
Maybe use a loop?
global number radius=1000
global number num =100
Start of layout
Repeat num times
--- create object planetoids at (sun.x+radius*cos(loopindex*360/num), sun.y+radius*sin(loopindex*360/num))
Develop games in your browser. Powerful, performant & highly capable.
R0J0hound i will try your tip.
Yes its working thanks !