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

#1 2008-10-18 18:01:00

Thorinoakinbum
Scratcher
Registered: 2008-10-18
Posts: 3

Side Scrolling

I'm new to Scratch and was wondering if someone could provide me with how to make it so I can have a endless back ground that scrolls from right to left when a character moves.

Offline

 

#2 2008-10-18 18:28:06

kimmy123
Scratcher
Registered: 2008-05-20
Posts: 1000+

Re: Side Scrolling

well if the character moves while scrolling, it will  move to the edge and you will have to restart the game


http://i.imgur.com/Mg3TPIE.pnghttp://i.imgur.com/rgyzXV5.pnghttp://i.imgur.com/685FKVd.pnghttp://24.media.tumblr.com/8678e33865664f328e1654109679cb92/tumblr_mm1qu3jGD71s8caito3_r1_250.gif

Offline

 

#3 2008-10-18 18:42:57

Thorinoakinbum
Scratcher
Registered: 2008-10-18
Posts: 3

Re: Side Scrolling

how can you make it so the back ground continuously scrolls when a certain button is pressed that makes the character "looks" like hes moving. 

If you know how could you leave a sample script?

Offline

 

#4 2008-10-18 21:24:02

skryed
Scratcher
Registered: 2008-04-26
Posts: 57

Re: Side Scrolling

kimmy123 wrote:

well if the character moves while scrolling, it will  move to the edge and you will have to restart the game

no it wont forever if scrollx=480*2 set scrollx to 0

Last edited by skryed (2008-10-18 21:24:31)


http://i10.photobucket.com/albums/a124/boysofsheahem/alphabet/I-1.pnghttp://i10.photobucket.com/albums/a124/boysofsheahem/alphabet/L-1.pnghttp://i10.photobucket.com/albums/a124/boysofsheahem/alphabet/Q-1.png

Offline

 

#5 2008-10-19 18:42:44

kimmy123
Scratcher
Registered: 2008-05-20
Posts: 1000+

Re: Side Scrolling

i mean if you put a  move 10 steps block in it.     go to my stuff and play meh games


http://i.imgur.com/Mg3TPIE.pnghttp://i.imgur.com/rgyzXV5.pnghttp://i.imgur.com/685FKVd.pnghttp://24.media.tumblr.com/8678e33865664f328e1654109679cb92/tumblr_mm1qu3jGD71s8caito3_r1_250.gif

Offline

 

#6 2008-11-06 09:38:41

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Side Scrolling

skryed wrote:

kimmy123 wrote:

well if the character moves while scrolling, it will  move to the edge and you will have to restart the game

no it wont forever if scrollx=480*2 set scrollx to 0

You are mostly correct with your code.
if scrollx>480*highestTerrainNumber set scrollX to 0
if scrollx<0 set scrollX to 480*highestTerrainNumber


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#7 2008-11-07 08:42:19

tro95
Scratcher
Registered: 2008-02-20
Posts: 78

Re: Side Scrolling

Dude click the link in my signiture for scrolling tutorials, scrolling for beginners I wound recommend for you.

Offline

 

#8 2008-11-26 05:16:20

tro95
Scratcher
Registered: 2008-02-20
Posts: 78

Re: Side Scrolling

grumblinho wrote:

Just tried some of your projects, tro95. Great stuff!

Np. tell all ya m8s, arch, your going down!

Offline

 

#9 2008-11-26 08:55:31

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Side Scrolling

tro95 wrote:

grumblinho wrote:

Just tried some of your projects, tro95. Great stuff!

Np. tell all ya m8s, arch, your going down!

Going down for what? I don't get you.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

Board footer