This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for Parallax

Return to Parallax

A new version of this scenario was uploaded on Sat Nov 17 02:40:24 UTC 2012
SpilliSpilli

2012/11/17

Do the particles just move at different synchronized speeds?
solokehsolokeh

2012/11/17

yes, if you are speaking of the "hold space to boost" thing. if you wish to look at the code, simply open it in Greenfoot.
solokehsolokeh

2012/11/17

I also used a random respawn algorithm to give the illusion of seeing unique stars every cycle.
solokehsolokeh

2012/11/17

they respawn 100 pixels offscreen to the right.
solokehsolokeh

2012/11/17

I 'm a complete N00b, as you probably have already deduced, so if what I say sounds like N00b-speak, it is.
SpilliSpilli

2012/11/17

I just has a quick look in the code. Why are you initializing each and every star in a new line when you could just use a simple loop?
solokehsolokeh

2012/11/17

I just started coding a few months ago, so I don't know what a simple loop is, should I?
SpilliSpilli

2012/11/17

I'll quickly re-make this and I'll add the code just for you so you can learn from it :)
solokehsolokeh

2012/11/17

Ok.
solokehsolokeh

2012/11/17

Thanks.
SpilliSpilli

2012/11/17

http://www.greenfoot.org/scenarios/6700 Best of luck, feel free to ask ANY questions.