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

#1 2010-08-18 14:22:27

kingofdallamas
Scratcher
Registered: 2010-03-07
Posts: 500+

Help: Infinite Scrolling!!

Hi fellow Scratchers! I have a problem with scripting of infinite scrolling. I very well aware of how to do regular scrolling, but I don't know how to minimize the amount of terrains for infinite scrolling. I want to utilize less sprites, so infinite scrolling forever uses those. Nevertheless, I don't know what kind of scripts I need. Please help! Diagrams of scripts will help, though. Teehee Thanks!  big_smile 

Don't worry, I'll give credit to those who have helped me.  smile


http://i853.photobucket.com/albums/ab99/Gilgamesh1192/Ninja%20Saga/ElementalJutsus2.gifhttp://i27.photobucket.com/albums/c192/BoomKaTish/GIF/thgfhgfhfhgf.gif
ハロー友だち!

Offline

 

#2 2010-08-18 15:25:24

bendad
Scratcher
Registered: 2008-06-14
Posts: 100+

Re: Help: Infinite Scrolling!!

This should be moved to all about scratch.


Hi!  big_smile
Good to see you. (Even if I don't know you  wink  )

Offline

 

#3 2010-08-18 15:58:46

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Help: Infinite Scrolling!!

Try looking at archmage's effcient scrolling demo:
http://scratch.mit.edu/projects/archmage/82995

It should help you get on your track  smile

Last edited by samurai768 (2010-08-18 19:10:28)

Offline

 

#4 2010-08-18 19:46:28

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Help: Infinite Scrolling!!

This looks like it would better be suited to All About Scratch - Advanced Topics is mostly for very technical topics dealing with the source code.

Offline

 

#5 2010-08-18 21:31:10

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Help: Infinite Scrolling!!

Well, I have a project on my account that does do infinite scrolling, but it doesn't change costumes.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#6 2010-08-18 22:48:47

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

Re: Help: Infinite Scrolling!!


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

Offline

 

#7 2010-08-18 23:07:52

helltank
Scratcher
Registered: 2010-05-21
Posts: 1000+

Re: Help: Infinite Scrolling!!

Try replaying the same terrains over and over...


Error:Signature could not load. Please wait for an indefinite amount of time, until you realize you're gullible and go off to look for another potentially interesting signature to stare at.

Offline

 

#8 2010-08-19 08:16:24

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Help: Infinite Scrolling!!

You need an equation something like this for your costume (it's probably not right, just a random guess, but if you want an actuall equation, look at Lucario621's Mario Kart):

switch to costume: round (scrollx/ 480) + ((round (scrolly/360)) x (however many costumes per row))  This should work, but I have no idea, so go look at Lucario621's project.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#9 2010-08-19 19:10:14

MabonBaladevaKain
Scratcher
Registered: 2010-07-25
Posts: 80

Re: Help: Infinite Scrolling!!

I'm working on a form of infinite scrolling right now in my newest experimental project  wink

It uses only 1 Sprite, 1 Stage (several backgrounds), and 1 Script (which is sure to be huge because of the fact that I'm not using any variables, lists, OR even any broadcasts!) ... <insert duplicate code here and here and here ... lol>

It may have been done before, I don't know, but it's definitely not the usual way that I've seen people doing scrolling on Scratch  big_smile

And it changes costumes to accomplish it ... is that good or bad?
I've got the base starter code complete, so I'm starting onto the main bulk of duplication and tweaking. Is everyone excited to see what I'll come up with?

I know I am! .... It'll be a few days at the very least before I get back to work on it though, so don't expect it any time soon. Maybe next week sometime.

Offline

 

#10 2010-08-19 19:18:20

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

Re: Help: Infinite Scrolling!!

MabonBaladevaKain wrote:

I'm working on a form of infinite scrolling right now in my newest experimental project  wink

It uses only 1 Sprite, 1 Stage (several backgrounds), and 1 Script (which is sure to be huge because of the fact that I'm not using any variables, lists, OR even any broadcasts!) ... <insert duplicate code here and here and here ... lol>

It may have been done before, I don't know, but it's definitely not the usual way that I've seen people doing scrolling on Scratch  big_smile

And it changes costumes to accomplish it ... is that good or bad?
I've got the base starter code complete, so I'm starting onto the main bulk of duplication and tweaking. Is everyone excited to see what I'll come up with?

I know I am! .... It'll be a few days at the very least before I get back to work on it though, so don't expect it any time soon. Maybe next week sometime.

It's been done before, but good luck! I'd like to see how you do it as opposed to others.


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

Offline

 

#11 2010-08-21 22:10:24

MabonBaladevaKain
Scratcher
Registered: 2010-07-25
Posts: 80

Re: Help: Infinite Scrolling!!

I forgot to mention there's no stamping or pen tool used either :p ....
Has it been done before without those and without everything else I mentioned?
If so could ya post me the link! ... I'm getting confused with the positioning settings.

Offline

 

#12 2010-08-21 22:22:30

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Help: Infinite Scrolling!!

The least amount of sprites possible would be four, shouldn't be too hard.  I'll try and get an example up.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#13 2010-08-22 03:52:20

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

Re: Help: Infinite Scrolling!!

Here is my simplest 4 way scroller. You can change the scroll speed and also toggle the background between the normal ground image or individual images for the 4 sprites that do the scrolling.. so you can see them in action.


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

Offline

 

#14 2010-08-23 04:16:51

MabonBaladevaKain
Scratcher
Registered: 2010-07-25
Posts: 80

Re: Help: Infinite Scrolling!!

AtomicBawm3 wrote:

The least amount of sprites possible would be four, shouldn't be too hard.  I'll try and get an example up.

Are you serious?
Cause if so then I guess I just broke the record.
I'm tired of working on it but it's done, just a bit barebones.
It is limited in some minor ways, but most if not all of that can be remedied by simply using more than just the one sprite.

If you want a continuous ground without any gaps or holes in between, it can be done by adding stamping or another sprite, or even as is if you don't mind one half of the ground vanishing as you move to the next.

   *******************************   Infinite Scrolling!   *********************************   

I still want to see that example of yours though  wink

Offline

 

Board footer