I'm making a Galaga-like game...
But none of the tutorials on scrolling background really helps me figure out how to make a auto scrolling background of stars... how do I make it seamless?
Help
Offline
This topic goes in Help With Scripts. I'll have it moved for you, you'll get a lot more help there than here.
Offline
I think this belongs in Help With Scripts.
Offline
What I'd recommend is simply making some white dots on a transparent or black background - make two sprites like this, and set them to scroll vertically.
Just in case you're not familiar with scrolling backgrounds, here's in essence how it works - set one sprite to go to X: 0, and Y: SomeVariable. Then set the other sprite to go to X:0, and Y: SomeVariable + Screen Height (Which is 360 in this case). Thus, the two will move together when you change SomeVariable's value. As soon as Sprite 1 is above a certain point, shoot it underneath Sprite 2, so they swap places. Keep changing SomeVariable by -1, and you'll get the illusion of moving through space.
Check out this article if you didn't understand the above -
http://wiki.scratch.mit.edu/wiki/Scrolling_Platformer_Tutorial
Happy scratching!
- iNK
Offline
I did something similar to this a while ago, you kind of take the ends and just make sure they match up. It should be pretty easy if you just draw white dots on a blue-black sky.
Offline
So first you can make a sprite with the background you want without a background color (just the stars). Copy it and put a black background. Set the stage to black background.
Now go to your first background and click costume then edit it. Zoom out all the way and Set the sprite costume to the top left corner. Go to the second background and Set costume center to the bottom left corner.
The first background sprite takes either a broadcast if you a play button or just a button press.
when [s v] key pressed broadcast [go v] forever go to x: (-240) y: (180) glide (5) secs to x:(-240) y:(-180)Second sprite background should then have
when I receive [go v] forever go to x: (-240) y: (180) glide (5) secs to x:(-240) y:(-180)I did a basis for this game in my project if you want to check it.
Offline