How do I Spawn Stars on start

Get help using Construct 2

Post » Tue Mar 31, 2015 9:17 pm

Hello all i want to know how to spawn , let say 100 stars per layers cuz i want to have it in paralax( i know how to paralax)
exemple my space background is fixed sin ce in space what is super far n ever move
but the scene is really big so i want to make sure the player wont have the feeling of no moving when hes traveling

so on layout start
i want to spawn 100 stars at random positions and random size
on the 3 layers
B
27
S
9
G
3
Posts: 136
Reputation: 3,750

Post » Tue Mar 31, 2015 9:23 pm

On start of layout:
For(start=0, end=100)
System->CreateObject->StarSprite (x=random(0,LayoutWidth), y=random(0, LayoutHeight), layer=random(0,2))
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Tue Mar 31, 2015 9:45 pm

briggybros wrote:On start of layout:
For(start=0, end=100)
System->CreateObject->StarSprite (x=random(0,LayoutWidth), y=random(0, LayoutHeight), layer=random(0,2))


where is the For ?
B
27
S
9
G
3
Posts: 136
Reputation: 3,750

Post » Tue Mar 31, 2015 9:54 pm

Image

Found it ^^
B
27
S
9
G
3
Posts: 136
Reputation: 3,750

Post » Wed Apr 01, 2015 8:26 pm

@kiugetski Did that work?
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Wed Apr 01, 2015 10:03 pm

B
27
S
9
G
3
Posts: 136
Reputation: 3,750


Return to How do I....?

Who is online

Users browsing this forum: apalm1341, blissfulwizard, Malhog and 16 guests