Discuss Scratch

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 )

Last edited by Kuro_Pi (June 6, 2016 18:05:18)

powercon5
Scratcher
1000+ posts

Top-Down Scrolling background?

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?

Kuro_Pi wrote:

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?

Kuro_Pi wrote:

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?

Kuro_Pi wrote:

Ah, that works! Thanks so much, sorry for being awkward
No problem. :-)
XanMonster
Scratcher
1 post

Top-Down Scrolling background?

14
codeman1044
Scratcher
1000+ posts

Top-Down Scrolling background?

XanMonster wrote:

14
Please don't necropost. This topic is resolved and old. Check the date and if the question is resolved before you post.
h1011001k
Scratcher
2 posts

Top-Down Scrolling background?

Ok.
deck26
Scratcher
1000+ posts

Top-Down Scrolling background?

h1011001k wrote:

Ok.
Please don't necropost.
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
ayyyyes10135
Scratcher
100+ posts

Top-Down Scrolling background?

JCiSBACK wrote:

You need Atleast 4 variables to make it happen:
Camera X
Camera Y
CLONE X
CLONE Y


Dont necropost. this is from 2016

Powered by DjangoBB