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

#1 2010-01-18 18:58:04

nikki99
Scratcher
Registered: 2010-01-16
Posts: 6

Scrolling

I'm making a platform game. I got scrolling to work. But there are black lines you jump on. When you scroll, the lines move to. Any ideas?

Offline

 

#2 2010-01-18 19:09:43

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Scrolling

Use the scrolling that you have, but edit the sprites that scroll to have black platforms on them.  Just take the current scrolling sprites and put black platforms on them!  big_smile


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#3 2010-01-18 19:23:37

nikki99
Scratcher
Registered: 2010-01-16
Posts: 6

Re: Scrolling

OMG!!!! It works!  big_smile

Offline

 

#4 2010-01-18 19:54:58

nikki99
Scratcher
Registered: 2010-01-16
Posts: 6

Re: Scrolling

Wait. But how do i do infinite scroll?

Offline

 

#5 2010-01-18 20:43:48

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Scrolling

Replace the scrolling scripts with this:

[blocks]
<when green flag clicked>
<forever>
<set x to( (( (((( sprite number  <*> 480 )  <+> <{ scrollx }> ))) <mod> number of sprites ))
<end>
[/blocks]

Sprite number is which sprite it is (i.e. the first ground section would be 1) and the number of sprites is how many ground sprites there are (if there are five ground sections, the number would obviously 5)

You'll find the mod block in operators. Pick the last block and use the drop down menu and select mod. (mod stands for modular function, but that doesn't really matter)

Does that work?


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#7 2010-01-22 00:59:16

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

Re: Scrolling

some of mine, from newest to oldest...

http://scratch.mit.edu/projects/Locomule/798042
http://scratch.mit.edu/projects/Locomule/792220
http://scratch.mit.edu/projects/Locomule/742929
http://scratch.mit.edu/projects/Locomule/708768
http://scratch.mit.edu/projects/Locomule/707613


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

Offline

 

Board footer