Hi there!
Thought I'd share a simple way of creating random starfields (Using for my space trading project).
http://scratch.mit.edu/projects/Ralin/2542511
Feel free to use and alter as you please.
TO USE IN YOUR PROJECT
Once you've downloaded this project just export the sprite "star" to somewhere on your computer. Import the sprite back into your own project and delete the scripts for the SPACE, N keys and remove the broadcast in the "when green flag clicked" block. Now you can run it from your project my BROADCASTING: createStarfield. Remember though that it clears and draws on the stage, so be careful if you project is drawing on your stage too. To set the number of stars in your starfield just change the NumOfStars variable to your choice under the "when green flag clicked" block.. Hope you find it useful
Offline
So beautiful!
I will be using this in my project if that's fine by you, and I'll credit you aswell. ^^
Offline
FeliDragon wrote:
So beautiful!
I will be using this in my project if that's fine by you, and I'll credit you aswell. ^^
Thanks!
You could mess about with "Set Y to" block (e.g. use acos instead of asin and other functions). Let me know here when you've done your project. Would be good to see how you use it.
Was a lot more complicated and better looking but made it simpler (different sliders and all). Originally wanted to include nebula, flares, etc... Gonna leave it for now thou.
Good luck with your project
Offline