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
109
S
25
G
43
Posts: 1,883
Reputation: 33,553

Post » Wed May 07, 2014 12:07 pm

bump
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,553

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
91
S
31
G
102
Posts: 5,232
Reputation: 67,250

Post » Thu May 08, 2014 7:58 am

@R0J0hound i will try your tip.

Yes its working thanks !
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,553


Return to How do I....?

Who is online

Users browsing this forum: MadSpy and 8 guests