What would be the best way to have random twinkling stars? I tried using particles and i didn't like the effect.
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.
Develop games in your browser. Powerful, performant & highly capable.
That should work. I just couldn't think of how to do it.
Thanks
Give the stars the fade behaviour and have them fade in and out when created?
Thanks again, i did it the hard way at first.