Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » infinite scrolling background
- 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
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.
when green flag clicked
go to x: () y: ()
wait (1) secs
forever
move (-10) steps
if <(x position) < [-461]> then
go to x: (462) y: (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/
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.
http://scratch.mit.edu/projects/21585450/
when green flag clicked
hide
when I start as a clone
go to x: (-480) y: (0)
show
repeat until <[x] = [0]>
change x by (-10)
end
create clone of [myself v]
repeat until <[x] = [-480]>
change x by (-10)
end
delete this clone
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)
- 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
switch costume to [ v]
stop all sounds
set pen color to [#ff0088]
if <> then
end
- Tilikum10
-
Scratcher
35 posts
infinite scrolling background
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)
- Discussion Forums
- » Help with Scripts
-
» infinite scrolling background
