Scrolling Done Right

Your browser needs java to view projects. Click here to install Java.

user_icon archmage shared it 1 year, 10 months ago
2756 views, 16 taggers, 88 people love it, 239 remixes by 147 people, 639 downloads, in 26 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
Mitch99 Mitch99 4 weeks ago

i've adapted your code so theres a ScrollY as well, using the exact same code as you, but when i hit the flag the terrain shoots the the top right, suggestions?

archmage archmage 4 weeks ago

Try looking at my other scrolling demonstrations.

Mitch99 Mitch99 4 weeks ago

wait, lol, you have it so you see the stage first, then the terrain, thats very misleading

ewgan ewgan 1 month ago

what would be the scripts for the player sprite?

archmage archmage 1 month ago

any jump script would be fine. See the scrolling demo in the sample projects that come with scratch.

jk47 jk47 1 month, 3 weeks ago

cool I ading to fave

Jonathanpb Jonathanpb 2 months ago

In Archknight's Adventure, you used only two sprites for the scrolling. Would it be bad to make a tutorial about X AND Y four-sprite scrolling? I am assuming that the great archmage can do it.

archmage archmage 2 months ago

I can do it but I am very busy with uni. Try coping the code from this project (link to project)

(view all replies)
TheoMarr TheoMarr 2 months, 2 weeks ago

When you download it, it goes all wrong.

Reamm Reamm 2 months, 3 weeks ago

Archmage can you make a demonstration for me that you click on the place , and you scroll there. Just like runescape.

archmage archmage 2 months, 3 weeks ago

Try asking on the forums first.

(view all replies)
MKR MKR 2 months, 3 weeks ago

Wow. This teaches alot, it was difficult at first to understand, but now I understand the general concept of the scroller. Before I had taken no time or effort to learn how, but you just motivated me! :D

StrathZ StrathZ 2 months, 4 weeks ago

Thank you for this project !!!

pleabargain pleabargain 3 months ago

Any idea if v2.0 of scratch will get over the need for hand creating sprites for scrolls? It's very time consuming...

archmage archmage 3 months ago

Probally not

(view all replies)
SuperCrazyguy SuperCrazyguy 3 months ago

this is awesome

Katsuo Katsuo 3 months ago

there's a better way to do it with only two terrain sprites

archmage archmage 3 months ago

You are correct, I have demonstrated the other method in this project (link to project)

dannyf52 dannyf52 3 months ago

oh boy! thank you sooo much, great things will come of this

Reamm Reamm 3 months, 1 week ago

Were do I find the scrolling sample on my scratch installation?

archmage archmage 3 months, 1 week ago

Open sample project->games->scrolling demo 4

GreenMonkey GreenMonkey 3 months, 3 weeks ago

i just tried your way and it works awesome!!!! thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

GreenMonkey GreenMonkey 3 months, 3 weeks ago

Thanks!!! That was awesome!!!!! :D

Kymo Kymo 3 months, 3 weeks ago

Tryed it, dosent work, you should explain it a little bit more.

archmage archmage 3 months, 3 weeks ago

download it and look at the code. Or just open the scrolling sample (also coded by myself) included with your scratch instalation.

(view all replies)
MarkWhoIsCool MarkWhoIsCool 3 months, 4 weeks ago

Yay, now I understand scrolling!

redflame142 redflame142 4 months, 1 week ago

thankyou so much...I really need a project like this to help me with ideas i had! Thanks!

Leaff123 Leaff123 4 months, 1 week ago

Could I use the script but not remix this project? I will give credit.

archmage archmage 4 months, 1 week ago

sure

(view all replies)
totalcarbohydrates totalcarbohydrates 4 months, 1 week ago

IT DON'T WORK

Sonicadvaned Sonicadvaned 3 months, 3 weeks ago

You need to make a varbiables to work

archmage archmage 4 months, 1 week ago

yeah it does

graphicfulsonic graphicfulsonic 5 months ago

can you help me do gravity please

graphicfulsonic graphicfulsonic 5 months, 2 weeks ago

i could make this........................................................................................unless it wasn't a remix

sam_m_j sam_m_j 6 months ago

nothing happens

Falcon9132 Falcon9132 6 months ago

This is going in my gallery.

Falcon9132 Falcon9132 6 months ago

This rocks! Now I can make scrolling games! Finally! I love this website!

graphicfulsonic graphicfulsonic 6 months, 1 week ago

works!....actually works!

00700789 00700789 6 months, 1 week ago

if you want your starting terrain to scroll to like in my scrolling games, I think you have to make it "scrollx+(-1x480)" That works in my scrollers but You know morethan me.

archmage archmage 6 months, 1 week ago

That is what I said to do in my forum tutorial on scrolling.

(view all replies)
tauvalian tauvalian 6 months, 1 week ago

that worked for me too on the game im making. Its my first ever.

maciej maciej 6 months, 2 weeks ago

this is how you do x scrollers huh. I do it a bit diffrently. off screen terrain hangs on the edge but still if i get anoyyed ill use this method as a guide :)

archmage archmage 6 months, 2 weeks ago

You really only need to hide the sprites if you are running the project offline. You probally just ignore the hide blocks, and I do this too now.

(view all replies)
heknodadyo heknodadyo 6 months, 3 weeks ago

awesome but what do i put if i want him to start on a platform?

ScratchMusicGroup ScratchMusicGroup 7 months, 1 week ago

Wow.....now i can finnally scroll for my other acc thx1!

giftedwarrior giftedwarrior 8 months, 1 week ago

duz it have to be SCROLLX?

the_programmer the_programmer 6 months, 3 weeks ago

no it's even possibble to call it "variable". Just as long as you can remember what it does.

(view all replies)
Shadowwolf248 Shadowwolf248 8 months, 2 weeks ago

thnx this rly helps!

gamer56 gamer56 9 months, 1 week ago

THNX! I know how to do Yscrolling now 2!

spongebob24 spongebob24 9 months, 3 weeks ago

how do you make the sprites disappear when there at the end?

archmage archmage 9 months, 3 weeks ago

Download it and look at the code

(view all replies)
WolfDemon WolfDemon 9 months, 4 weeks ago

how do you make it continue

archmage archmage 9 months, 4 weeks ago

you add more sprites

iphone_man iphone_man 10 months, 1 week ago

tyvm

spongebob24 spongebob24 10 months, 3 weeks ago

yay this helped a lot! thanx!

ChefCookie ChefCookie 1 year ago

Hooray!!

JUSTJAMES JUSTJAMES 1 year ago

Did this ever get top remixed lately? Cus it has 137 remixes. Also, has it ever gotten on the front page for views (woah 1555 lol!!!) or love-its (54, higher than average top love it recent love-its)

archmage archmage 1 year ago

I remember it getting frontpage. I don't remember what for though, most of my good projects get frontpage so its not a big deal.

(view all replies)
zawicki1fromyoutube zawicki1fromyoutube 1 year ago

I remixed this but in a different way.

MattO2000 MattO2000 1 year ago

THANK YOU SOOOOOOOOOO MUCH!

TacticalAssassin TacticalAssassin 1 year ago

how do you have one single backround that is bigger than the screen where your guy is stationary and the backround is moving?

archmage archmage 1 year ago

Just have a bunch of sprites that scroll up and down and left and right. Have a scrollY varaible and move your sprites with the scrollY variable. My blog explains it better archblogger.wordpress.com

(view all replies)
kuraggathean kuraggathean 1 year ago

this is good stuff. it is helping me make my next project. thx! same as that archnight fella. looking at the scripts really helps

archmage archmage 1 year ago

I do all the programming for archknight.

(view all replies)
ArchDragon ArchDragon 1 year, 1 month ago

pwnage.

zebegnell zebegnell 1 year, 1 month ago

how do you make it scroll up and down, too?

archmage archmage 1 year, 1 month ago

480 is the width of the screen and 360 is the hieght of the screen.

(view all replies)
archmage archmage 1 year, 1 month ago

Just replace 2 things. Where ever it has a x, you put a y instead. Where ever it has the number 480, replace that with 360.

(view all replies)
matt000r000 matt000r000 1 year, 1 month ago

how do you have one single backround that is bigger than the screen where your guy is stationary and the backround is moving?

nikolas555 nikolas555 1 year, 2 months ago

i need help i cant make any more games it says that i made it but it jsut does not come on here

archmage archmage 1 year, 1 month ago

look at this (link to project)

person2 person2 1 year, 2 months ago

Wow!!! THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! U rock!

Wiltyr Wiltyr 1 year, 2 months ago

thanku thank u thank u!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ribbledude ribbledude 1 year, 2 months ago

this will help alot XD --ps u guys check out my DA some time X) - ribbledude on deviantart

markyparky56 markyparky56 1 year, 2 months ago

thanks all my atempts are not very good

Billybob-Mario Billybob-Mario 1 year, 2 months ago

Thank you!

nikahn nikahn 1 year, 2 months ago

thank's I'm not very good at scrolling and this gives me a beter idea.

animator123 animator123 1 year, 2 months ago

hey so you dont really scroll the background but scroll sprites

archmage archmage 1 year, 2 months ago

Thats the idea

(view all replies)
DOCTORWHODUDE DOCTORWHODUDE 1 year, 3 months ago

THEY ALL GO OFF TO THE SIDE.

DOCTORWHODUDE DOCTORWHODUDE 1 year, 3 months ago

I CANT GET MINE TO WORK I COPYED YOUR WHAT YOU SAID BUT I JUST DISSAPERS:(

archmage archmage 1 year, 3 months ago

Then look closer at the scripts.

archmage archmage 1 year, 3 months ago

Try comparing the code in this project to your code.

(view all replies)
adityasm9 adityasm9 1 year, 3 months ago

I take 480 is the limite of scratch's x axis?

archmage archmage 1 year, 3 months ago

Its the width of the screen.

(view all replies)
sonic2000 sonic2000 1 year, 3 months ago

this helped me create a good game

thrash240 thrash240 1 year, 3 months ago

thanks this helped a lot!

lol90 lol90 1 year, 3 months ago

ok...

Please Wait...