Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Top-Down Scrolling background?
- Kuro_Pi
-
Scratcher
62 posts
Top-Down Scrolling background?
So I'm making a top-down game, and I want a scrolling background, that scrolls as you move around. I have made it so that you can point your mouse in directions and the character follows, but stays in the centre of the screen and only changes the X and Y variables.
Using this, or any other variables, how could I make a scrolling background?
(much like in Griffpatch's slither.io: https://scratch.mit.edu/projects/106645017 )
Using this, or any other variables, how could I make a scrolling background?
(much like in Griffpatch's slither.io: https://scratch.mit.edu/projects/106645017 )
Last edited by Kuro_Pi (June 6, 2016 18:05:18)
- Kuro_Pi
-
Scratcher
62 posts
Top-Down Scrolling background?
Doesn't really help, as it only explains 2-way scrolling. (it mentions top-down, but doesn't say anything about it.)
- powercon5
-
Scratcher
1000+ posts
Top-Down Scrolling background?
Doesn't really help, as it only explains 2-way scrolling. (it mentions top-down, but doesn't say anything about it.)You want
X and Y Scrolling
This is exactly the same as the “Traditional Method”, except you can scroll upwards, as well as across. You will need more scripts just like the ones above except with a different variable, and you will have to replace the number 480 with the height of the area you want to scroll in (typically 360).
- Kuro_Pi
-
Scratcher
62 posts
Top-Down Scrolling background?
What if I wanted to make it scroll infinitely?
Last edited by Kuro_Pi (June 6, 2016 18:37:33)
- powercon5
-
Scratcher
1000+ posts
Top-Down Scrolling background?
What if I wanted to make it scroll infinitely?Look at the bit called Infinite Scrolling.
- Kuro_Pi
-
Scratcher
62 posts
Top-Down Scrolling background?
Ah, that works! Thanks so much, sorry for being awkward 

- powercon5
-
Scratcher
1000+ posts
Top-Down Scrolling background?
Ah, that works! Thanks so much, sorry for being awkwardNo problem. :-)
- codeman1044
-
Scratcher
1000+ posts
Top-Down Scrolling background?
14Please don't necropost. This topic is resolved and old. Check the date and if the question is resolved before you post.
- JCiSBACK
-
Scratcher
8 posts
Top-Down Scrolling background?
You need Atleast 4 variables to make it happen:
Camera X
Camera Y
CLONE X
CLONE Y
Camera X
Camera Y
CLONE X
CLONE Y
- ayyyyes10135
-
Scratcher
100+ posts
Top-Down Scrolling background?
You need Atleast 4 variables to make it happen:
Camera X
Camera Y
CLONE X
CLONE Y
Dont necropost. this is from 2016
- Discussion Forums
- » Help with Scripts
-
» Top-Down Scrolling background?







