Twinkling Stars

Get help using Construct 2

Post » Thu Apr 19, 2012 1:55 pm

What would be the best way to have random twinkling stars? I tried using particles and i didn't like the effect.
B
17
S
9
G
7
Posts: 249
Reputation: 6,922

Post » Thu Apr 19, 2012 2:15 pm

Maybe place a star with a random position:
X: random(0, LayoutWidth)
Y: random(0, LayoutHeight)

and then change the opacity of the star every x seconds, so you get the illusion of its blinking.
B
38
S
13
G
9
Posts: 151
Reputation: 8,427

Post » Thu Apr 19, 2012 3:09 pm

That should work. I just couldn't think of how to do it.

Thanks
B
17
S
9
G
7
Posts: 249
Reputation: 6,922

Post » Thu Apr 19, 2012 3:54 pm

Give the stars the fade behaviour and have them fade in and out when created?
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Thu Apr 19, 2012 6:26 pm

Thanks again, i did it the hard way at first.
B
17
S
9
G
7
Posts: 249
Reputation: 6,922


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, mnashwan, shinkan, stylie1, tarek2 and 9 guests