SOLVED Need help (planetoids in space)

Get help using Construct 2

Post » Tue May 06, 2014 7:44 pm

Image

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
You do not have the required permissions to view the files attached to this post.
Last edited by delgado on Thu May 08, 2014 8:00 am, edited 1 time in total.
B
110
S
27
G
47
Posts: 1,887
Reputation: 35,799

Post » Wed May 07, 2014 12:07 pm

bump
B
110
S
27
G
47
Posts: 1,887
Reputation: 35,799

Post » Wed May 07, 2014 10:26 pm

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))
B
92
S
32
G
110
Posts: 5,295
Reputation: 71,501

Post » Thu May 08, 2014 7:58 am

@R0J0hound i will try your tip.

Yes its working thanks !
B
110
S
27
G
47
Posts: 1,887
Reputation: 35,799


Return to How do I....?

Who is online

Users browsing this forum: Armench, Jackriduk, kiki4construct and 34 guests