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

#1 2010-09-23 12:47:58

shadownn
New Scratcher
Registered: 2010-09-20
Posts: 3

scrolling

Hey guys i wan't to make scrolling game, well like it any way... i don't know how to make scrolling thing. i was wondering if any of u could help, tell me how to do it, or website of youtube, but i check most of it. And there were all [removed by moderator]. Please tell me how to.

Last edited by cheddargirl (2010-09-23 13:55:29)

Offline

 

#2 2010-09-23 12:57:47

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: scrolling

They're everywhere. One I really like is this.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#3 2010-09-23 13:48:24

shadownn
New Scratcher
Registered: 2010-09-20
Posts: 3

Re: scrolling

and i want y scrolling thing

Offline

 

#4 2010-09-24 21:57:58

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: scrolling

Its complicated: You have to make a variable named scrollx or somthing like that not too comfusing then make when the caracter your controlling when left arrow
<change{scrollx}by(5
when right arrow pressed <change{scrollx}by(-5
then make a sprite for the ground peices make it the longest you can and put <when green flag clicked> <forever> <set x to( (( scrollx <+> (( 480 <*>0  )) ))   the next peice of ground will have to be the same only instead of the 0 (not instead of the 480) put a 1. The next peice of land will be whith a 2 next 3 ext.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#5 2010-09-25 12:40:30

awsomemaster
Scratcher
Registered: 2008-04-10
Posts: 83

Re: scrolling

shadownn wrote:

Hey guys i wan't to make scrolling game, well like it any way... i don't know how to make scrolling thing. i was wondering if any of u could help, tell me how to do it, or website of youtube, but i check most of it. And there were all [removed by moderator]. Please tell me how to.

it's pretty easy
you need a make a variable (call it whatever you want but most call it scroll x)
now the width of the scratch screen is 480 (-240 to 240 in x)
so the code would be:

{when green flag clicked}
{set scroll x to (0)}
{forever
{set x to (scrollx)+(480) 
this will make it so you can move left and right, but if you     want to make more platforms you need to change the code to

{when green flag clicked}
{set scroll x to (0)}
{forever}
{set x to (scroll x)+(480)*(what position that platform will be (0 1 -1 -2 ect) )
{/forever}

and just have the left and right arrow keys change scroll x.


scar the REAL 3d fps we've all been waiting for

Offline

 

Board footer