This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Comments for Parallax
Return to Parallax
A new version of this scenario was uploaded on Sat Nov 17 02:40:24 UTC 2012
Spilli
2012/11/17
Do the particles just move at different synchronized speeds?
solokeh
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.
solokeh
2012/11/17
I also used a random respawn algorithm to give the illusion of seeing unique stars every cycle.
solokeh
2012/11/17
they respawn 100 pixels offscreen to the right.
solokeh
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.
Spilli
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?
solokeh
2012/11/17
I just started coding a few months ago, so I don't know what a simple loop is, should I?
Spilli
2012/11/17
I'll quickly re-make this and I'll add the code just for you so you can learn from it :)
solokeh
2012/11/17
Ok.
solokeh
2012/11/17
Thanks.
Spilli
2012/11/17
http://www.greenfoot.org/scenarios/6700 Best of luck, feel free to ask ANY questions.
X
2012/11/17
2012/11/17
2012/11/17
2012/11/17
2012/11/17
2012/11/17
2012/11/17
2012/11/17
2012/11/17
2012/11/17
2012/11/17