Discuss Scratch

daniel_j
Scratcher
100+ posts

infinite scrolling background

Hey guys; been a while since I've user Scratch, and i'm completely stumped D:
I'm creating a project that requires a background (city scape) that scrolls infinitely between 2 sprites.
I know how to scroll; I just can't get the 2 sprites to scroll infinitely together.
Any help is greatly appreciated
poniesareso
Scratcher
100+ posts

infinite scrolling background

Put this script in both. Just remember to put the backdrops in the backpack and turn them into sprites.
whenclickedgotox:y:wait1secsforevermove-10stepsifxposition<-461thengotox:462y:0

zanzolo
Scratcher
66 posts

infinite scrolling background

I do this with the same image so I use clones. My project Rabid bat nightmare does this with the ground

http://scratch.mit.edu/projects/21585450/

whenclickedhidewhenIstartasaclonegotox:-480y:0showrepeatuntilx=0changexby-10createcloneofmyselfrepeatuntilx=-480changexby-10deletethisclone

So I have two clones on the screen at any given time. in the project I'm also checking other things, I want the background to stop when the game is over.

Last edited by zanzolo (May 25, 2014 01:03:17)

daniel_j
Scratcher
100+ posts

infinite scrolling background

Thanks guys
Scratcha_matic
Scratcher
31 posts

infinite scrolling background

Thanks! I'm making a really complicated space game and I needed to have infinite scrolling stuff for the menu.
lion_lev
New Scratcher
1 post

infinite scrolling background

switchcostumetostopallsoundssetpencolortoifthen
Tilikum10
Scratcher
35 posts

infinite scrolling background

Minechof wrote:

how do you put something into youre backpack?

you have to be on the website and there is a backpack slots at the bottom
joshuaho
Scratcher
1000+ posts

infinite scrolling background

I think the topic has already ran its course - a really long time ago, in fact. Please check the date of the posts before posting and don't bump up old threads that have been resolved. Thanks!

Last edited by joshuaho (July 26, 2015 20:38:33)

Powered by DjangoBB