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
22
S
7
G
1
Posts: 88
Reputation: 2,165

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
22
S
5
G
1
Posts: 430
Reputation: 3,383

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
22
S
7
G
1
Posts: 88
Reputation: 2,165

Post » Tue Mar 31, 2015 9:54 pm

Image

Found it ^^
B
22
S
7
G
1
Posts: 88
Reputation: 2,165

Post » Wed Apr 01, 2015 8:26 pm

@kiugetski Did that work?
Nothing goes unanswered!
B
22
S
5
G
1
Posts: 430
Reputation: 3,383

Post » Wed Apr 01, 2015 10:03 pm

B
22
S
7
G
1
Posts: 88
Reputation: 2,165


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests