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
118
S
32
G
49
Posts: 1,886
Reputation: 37,524

Post » Wed May 07, 2014 12:07 pm

bump
B
118
S
32
G
49
Posts: 1,886
Reputation: 37,524

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
94
S
33
G
123
Posts: 5,449
Reputation: 78,461

Post » Thu May 08, 2014 7:58 am

@R0J0hound i will try your tip.

Yes its working thanks !
B
118
S
32
G
49
Posts: 1,886
Reputation: 37,524


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 35 guests