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

#1 2013-03-26 01:17:04

HamsterMan2000
Scratcher
Registered: 2008-12-20
Posts: 62

Simplest way to infinite scrolling

Hello there!

I'm currently making a game kind of like Jetpack Joyride, and I need some advice on infinite scrolling. The reason I want infinite scrolling is to add variation to the background scrolling past you.

SO, here is what I have. 3 Background scrolling objects, this is the script of the first one:

http://i.imgur.com/lWCJxyI.jpg
L The 2*480 should not be there, replace it with a 0
    L This script only works in one direction

This works, but is flickers whenever it needs to reset itself to 0.

Is there an easier way of doing it?

Thanks is advance!  big_smile
-Hamsterman2000

Last edited by HamsterMan2000 (2013-03-26 01:20:04)


http://i.imgur.com/DB8bLI9.png

Offline

 

#2 2013-03-26 02:47:11

northmeister
Scratcher
Registered: 2011-07-12
Posts: 1000+

Re: Simplest way to infinite scrolling

In my games Spikem and Balloon Dodge, I've used chanmanpartyman's infinite scrolling tutorial, and it works pretty well.  smile

Last edited by northmeister (2013-03-26 02:47:31)


http://i48.tinypic.com/5a25g5.png

Offline

 

#3 2013-03-26 03:38:23

HamsterMan2000
Scratcher
Registered: 2008-12-20
Posts: 62

Re: Simplest way to infinite scrolling

Thanks, that helped a lot! Btw, those projects of yours are great!


http://i.imgur.com/DB8bLI9.png

Offline

 

#4 2013-03-26 05:40:58

BratuMarian
New Scratcher
Registered: 2013-03-26
Posts: 3

Re: Simplest way to infinite scrolling

Great project! It's really inspire me...maybe one day ,I will be able to do something similar

Offline

 

Board footer