This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-08-02 09:46:41

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

How to do Infinite Scrolling?

I'm making a never-ending scroller, but I'm not quite sure how I'd make it so I can reuse the same scrolling sprites over and over rather than create an infinite amount of them.


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#2 2010-08-02 09:52:59

JeanTheFox
Scratcher
Registered: 2010-06-14
Posts: 1000+

Re: How to do Infinite Scrolling?

Maybe my post on this can help you?


http://i51.tinypic.com/20gcn5j.png

Offline

 

#3 2010-08-02 11:07:37

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: How to do Infinite Scrolling?

Side scrolling with a horizontal view? A top-down view with scrolling in all directions? Are you going to have structured levels like in Super Mario or will the player be allowed to free-roam?

People assume that the term "scrolling" means one kind of game. All scrolling really means is moving sprites on and off the stage which obviously can be used in many different ways.


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#4 2010-08-02 11:11:48

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: How to do Infinite Scrolling?

Locomule wrote:

Side scrolling with a horizontal view? A top-down view with scrolling in all directions? Are you going to have structured levels like in Super Mario or will the player be allowed to free-roam?

People assume that the term "scrolling" means one kind of game. All scrolling really means is moving sprites on and off the stage which obviously can be used in many different ways.

Horizontal free-roam.


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#5 2010-08-02 11:12:39

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How to do Infinite Scrolling?

Also, does the landscape that loops need to be big, or can it be small?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#6 2010-08-02 11:24:42

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: How to do Infinite Scrolling?

Harakou wrote:

Also, does the landscape that loops need to be big, or can it be small?

The landscape will be as wide as the stage.


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#7 2010-08-02 11:38:29

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How to do Infinite Scrolling?

Sunrise-Moon wrote:

Harakou wrote:

Also, does the landscape that loops need to be big, or can it be small?

The landscape will be as wide as the stage.

No, I mean how big will the part of the landscape that loops be? Large, so it doesn't seem repetitive, or small?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#8 2010-08-02 11:41:49

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: How to do Infinite Scrolling?

Harakou wrote:

Sunrise-Moon wrote:

Harakou wrote:

Also, does the landscape that loops need to be big, or can it be small?

The landscape will be as wide as the stage.

No, I mean how big will the part of the landscape that loops be? Large, so it doesn't seem repetitive, or small?

Small and repetitive xD


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#9 2010-08-02 11:47:24

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How to do Infinite Scrolling?

Sunrise-Moon wrote:

Harakou wrote:

Sunrise-Moon wrote:


The landscape will be as wide as the stage.

No, I mean how big will the part of the landscape that loops be? Large, so it doesn't seem repetitive, or small?

Small and repetitive xD

Okay. You can do that with just two sprites. Have both ends of both sprites so that they match up. (So that if they were actually printed out, you could tape them together into a tube, and the picture would appear continuous.) Then make them loop, so that when one gets to one edge, it then moves and goes to the other edge, and keeps scrolling.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#10 2010-08-02 11:58:47

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: How to do Infinite Scrolling?

Harakou wrote:

Sunrise-Moon wrote:

Harakou wrote:


No, I mean how big will the part of the landscape that loops be? Large, so it doesn't seem repetitive, or small?

Small and repetitive xD

Okay. You can do that with just two sprites. Have both ends of both sprites so that they match up. (So that if they were actually printed out, you could tape them together into a tube, and the picture would appear continuous.) Then make them loop, so that when one gets to one edge, it then moves and goes to the other edge, and keeps scrolling.

How would I do it with larger terrain?


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#11 2010-08-02 12:04:20

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How to do Infinite Scrolling?

Sunrise-Moon wrote:

Harakou wrote:

Sunrise-Moon wrote:


Small and repetitive xD

Okay. You can do that with just two sprites. Have both ends of both sprites so that they match up. (So that if they were actually printed out, you could tape them together into a tube, and the picture would appear continuous.) Then make them loop, so that when one gets to one edge, it then moves and goes to the other edge, and keeps scrolling.

How would I do it with larger terrain?

You'd have to make a combination of that and a regular x scrolling engine. So you would have the scrolling sprites, but either end of the terrain as a whole would match with the other end. Then you would have to loop it. I know I'm not very good at explaining it; I'm trying to find a project that demonstrates it, but can't find one...  hmm


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer