Efficient Scrolling Demo

Install Java to view this project right on your browser!

user_icon archmage shared it 4 years, 4 months ago
user_icon Based on archmage's project
2782 views, 15 taggers, 22 people love it, 1057 downloads, in 10 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
Basically Basically 4 months, 3 weeks ago

erm...cool!

three577 three577 5 months, 3 weeks ago

COOL!

chanmanpartyman chanmanpartyman 6 months ago

I can use this is a project, right?

brenton11 brenton11 10 months ago

when I do it it switches costume too early

bloo123456 bloo123456 8 months, 4 weeks ago

change the scrollx speed to a lower one, preferably to the same as the character movement

(view all replies)
scratchn8 scratchn8 1 year, 8 months ago

cool scrollx

twrp twrp 1 year, 8 months ago

I can't make a four way scroller... Anyone wanna help?

lemonpretzel lemonpretzel 11 months, 2 weeks ago

(link to project)

gtoal gtoal 1 year, 8 months ago

There are no 'wait's and no synchronisation between left and right - smooth scrolling with this scheme relies on the loops all running as fast as possible. I would suggest a master controller loop that waits between frames, and sends broadcasts to the left and right tile display blocks so that they update as close in time to each other as possible.

CALE01 CALE01 1 year, 9 months ago

36. :(

Silentstar Silentstar 1 year, 10 months ago

Ack!!!This is almost impossible!!!

colorfusion colorfusion 1 year, 10 months ago

Its just like a normal scrolling script but instead of setting the location to 480 * the number of where it appears, it sets it to 480 * terrain num, and terrain num is a number that keeps up with wherever you are.

(view all replies)
archmage archmage 1 year, 10 months ago

But its only about 4 small scripts with no complex math. In the grand scope of things its not complicated, but for someone who has no programming experience I understand the confusion.

archmage archmage 1 year, 10 months ago

How so?

(view all replies)
rocketthecat5 rocketthecat5 1 year, 10 months ago

you stink mrmunchkin dont make a mario one

JeanTheFox JeanTheFox 1 year, 11 months ago

NOOOO! It was working, then I saved and it all fell apart...

JeanTheFox JeanTheFox 1 year, 11 months ago

Thankew so much.

mrak mrak 2 years, 2 months ago

can you do this with scrollx and scrolly

Jesscookie Jesscookie 2 years, 4 months ago

Wow--the scripts look so complicated, yet there's only 2 :D

archmage archmage 2 years, 4 months ago

Not to mention that they are short

MrMunchkin MrMunchkin 2 years, 4 months ago

may i possibly use this and adapt it to make a mario scroller? Thanks.

MrMunchkin MrMunchkin 2 years, 4 months ago

wait don't worry. far too complicated for me.

switenky switenky 2 years, 5 months ago

Thanks! I'll use that in my 3-D project, what you think of that, Archmage?

Thomas96 Thomas96 1 year, 10 months ago

try using my programs from my engine: (link to project)

archmage archmage 2 years, 5 months ago

It may be hard to adapt this to what you want to do. But good luck, and if you need help ask in the forums.

(view all replies)
idunno idunno 2 years, 7 months ago

I seriously need help i have tried all the tutorials i can find but can't do 4-way scrolling. Would you point me in the right direction please?

Prestige Prestige 2 years, 7 months ago

4 way scrolling? If you mean X and Y then you need to set your terrain sprites to >set X to ScrollX+480*(whatever) and >set Y to ScrollY+480*(whatever):)

(view all replies)
Asimo Asimo 2 years, 8 months ago

can you make a tutorial on scrolling like this but up and down instead?

archmage archmage 2 years, 8 months ago

Just replace x with y and 480 with 360. Do this for every time you see it and it will go up and down.

(view all replies)
NandoKilla NandoKilla 2 years, 10 months ago

this is too complicated plz make a less complicated script to copy! to complicated

FantasyTales FantasyTales 2 years, 10 months ago

that shouldnt crash your computer, how many gigs of ram? anyway this is as simple as it gets, if you cant use this than u cant make good scrollers

archmage archmage 2 years, 10 months ago

4 scripts is too complex? Then try the scrolling demo that scratch comes with.

(view all replies)
benderbending benderbending 2 years, 11 months ago

Wow finally this is what I am looking, i have some question... how do you make a sprite move through the backround with the backround moving, like (example) mario classic games and others and platforms for the sprite stand on and to jump on? I am pretty new to this so plz help me out.

archmage archmage 2 years, 11 months ago

Try looking up the game "chop shop" for a simple example.

(view all replies)
GameMaker27 GameMaker27 2 years, 11 months ago

cool, chck out mine

thefunkeypee thefunkeypee 2 years, 11 months ago

Is there a way to make it go up and down? I'll try...

archmage archmage 2 years, 11 months ago

Replace x with y and replace 480 with 360

entertainment entertainment 3 years, 2 months ago

i cant get the terrain the way i want it to be.

Blake2621 Blake2621 3 years, 4 months ago

I'm making a scrolling game with the download i took from this. but how do you pitfalls and floating platforms?

archmage archmage 3 years, 3 months ago

Ask in the forums

benjamin2 benjamin2 3 years, 4 months ago

Cool! You won The Scratch Cup 2009 from The_Scratch_Cup!

archmage archmage 3 years, 4 months ago

Yeah I know

(view all replies)
sambo1994 sambo1994 3 years, 8 months ago

nice but i cant download it, it just says cannot read message not understood??? plz help

Buddy_ca111 Buddy_ca111 3 years, 5 months ago

Did you have the latest version of scratch?

Shadow-Kun Shadow-Kun 3 years, 8 months ago

Nice, I plan on starting a scrolling game and this should help a lot.

DR4G0N DR4G0N 3 years, 9 months ago

i,m gonna try putting this in a game :)

inuwali inuwali 3 years, 10 months ago

Very nice! Smooth and simple. All you really need is two sprites since that's all that could be in view at one time. I came up with a similar solution independently for a two-dimensional scrolling game (horizontal and vertical).

Paddle2See Paddle2See* 4 years ago

Sorry, should have mentioned that you can delete the flickering version any time you want, I took a copy. I had a couple of theories but nothing has proven out yet; still thinking. Not sure why I'm interested, the velocity version is fine, but I would like to know why it's doing what it's doing. Very annoying.

Paddle2See Paddle2See* 4 years ago

This is awesome! This would have saved me a bunch of thinking if I had seen it before I did my little scroller project recently. I love this technique. I do believe that the Forum tutorial topic that references this has an error in the movement script. The end of the second If is in the wrong spot.

archmage archmage 4 years ago

Ohhh, I see what you mean. I thought you were referring to the scripts in this project. Thanks for letting me know about my typo. I'll fix it now.

archmage archmage 4 years ago

You can see the bug I mentioned in the following project (link to project)

(view all replies)
archmage archmage 4 years ago

The problem was that the sprites would flicker if you didn't use a movement script that involved velocity. If you tried to change scrollX simply by adding to or taking away from the variable the screen flickers. Unfortunately, I don't quite understand how the solution you mentioned would fix this, can you explain your solution in greater detail?

archmage archmage 4 years, 1 month ago

Both terrain sprites must have the same costumes in the same order.

maki maki 4 years, 1 month ago

It also happens on (link to project)

maki maki 4 years, 1 month ago

Um... Archmage little problem here, I made a platform scroller using this scrolling technique (it's not posted yet), but the platform costumes change suddenly. I think this is because of the 'switch costume to (terrainnum).' Could you please tell me how to fix this?! :D Please answer on one of my projects.

lukanater lukanater 4 years, 1 month ago

well really all you need for 4-way scrolling is 4 round sprites im coming out with a 4 way scrolling engine.

archmage archmage 4 years, 1 month ago

No.

Lucario621 Lucario621° 4 years, 1 month ago

Instead of using multiple sprites?

Lucario621 Lucario621° 4 years, 1 month ago

Is there any way to use the scrolling strategy for a multidirectional scrolling with 4 sprites?

inuwali inuwali 3 years, 10 months ago

I've just posted a project that does this and allows unlimited map sizes in both dimensions. Check it out [url=(link to project)]here[/url].

redsooty9 redsooty9 4 years, 1 month ago

wait ummm nevermind...

redsooty9 redsooty9 4 years, 1 month ago

!!!! i have NEVER seen scrolling like this before!! how do you do it!?!?

archmage archmage 4 years, 1 month ago

Lol not even.

Donut-slayer Donut-slayer 4 years, 1 month ago

I said this on your other scrolling project but.... your a genius=D

fullmoon fullmoon 4 years, 1 month ago

I've got a large game in the works and I'm looking for a 2 directional scrolling method. This will be perfect. Thanks!

Cyclone103 Cyclone103 4 years, 2 months ago

ok i tried to do this but it wont stop flickering. Help! please post a helpful comment on any one of my games!

thecooltodd thecooltodd 4 years, 2 months ago

Here's another way to do the same thing except in 2 dimensions: (link to project) I prefer the mod command because I don't really like using the round command.

Sakani Sakani 4 years, 2 months ago

I cthink I can use this one now.

NobodyKnowsNorune NobodyKnowsNo… 4 years, 3 months ago

Um arch... I used this and it didn't work, well it works just not very well, there are large gaps inbetween the terains, here I was hopeing you could help. (link to project)

archmage archmage 4 years, 3 months ago

No problem :3

nikkiperson2 nikkiperson2 4 years, 3 months ago

i could use this scrolling type in jumper and my donkey kong game. thanks archmage ^3^

dumbnerd dumbnerd 4 years, 3 months ago

thx archmage

ivandonat ivandonat 4 years, 3 months ago

lol!

nuva123431 nuva123431 4 years, 3 months ago

cool im going to use it

Snowberry23 Snowberry23 4 years, 3 months ago

wow

ryano ryano 4 years, 3 months ago

good

archmage archmage 4 years, 3 months ago

Yeah, you could put them at any y position. I don't know why you would want to though.

NobodyKnowsNorune NobodyKnowsNo… 4 years, 3 months ago

I mean any y postion

NobodyKnowsNorune NobodyKnowsNo… 4 years, 3 months ago

hey archmage, can the scrolling boxs be at any X postions and still scroll

monkeypiefairy monkeypiefairy 4 years, 3 months ago

EXACTLY WHAT I NEEDED!!!!!! THANK U!!!!

archmage archmage 4 years, 3 months ago

Thanks :)

planetbravo planetbravo 4 years, 3 months ago

wow this is cool... i think its too advanced for me lol! but "wow" All of your games are really good though!

Please Wait...