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

#1 2009-09-09 16:18:40

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Vertical scrolling

I recently made a game, SFS V X.5 that used scrolling that made it look like it was coming forward. (example is the plane stimulator project based on plane flyer, moving aroundthe pacific) but I haven't made it work right yet. (at least not as well) can anyone please put this up in the scratch blocks blocks please?


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#2 2009-09-09 20:39:22

weswesrock
Scratcher
Registered: 2009-06-25
Posts: 500+

Re: Vertical scrolling

I used y-scrolling in this project:
http://scratch.mit.edu/projects/weswesrock/673302
download it

Offline

 

#3 2009-09-09 20:55:24

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Vertical scrolling

I will try to put it in blocks, but here is the basic concept. Vertical scrolling is the exact same thing as horizontal scrolling, but instead of saying *480, you say *360
so for each terrain say:

set x to scroll x + 360 * [terrain #]

Offline

 

#4 2009-09-10 02:10:36

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Vertical scrolling

This might help: Learn Scrolling Now!

This will help too, and more: Ultimate Tutorial!


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#5 2009-09-10 14:15:32

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

Re: Vertical scrolling

shadow_7283 wrote:

I will try to put it in blocks, but here is the basic concept. Vertical scrolling is the exact same thing as horizontal scrolling, but instead of saying *480, you say *360
so for each terrain say:

set x to scroll x + 360 * [terrain #]

You forgot to say "change x to y".

Like this
set y to scroll y + 360 * [terrain #]


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

 

#6 2009-09-10 17:15:54

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Vertical scrolling

archmage wrote:

shadow_7283 wrote:

I will try to put it in blocks, but here is the basic concept. Vertical scrolling is the exact same thing as horizontal scrolling, but instead of saying *480, you say *360
so for each terrain say:

set x to scroll x + 360 * [terrain #]

You forgot to say "change x to y".

Like this
set y to scroll y + 360 * [terrain #]

I will try these. thank you for your help!


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#7 2009-09-10 17:32:24

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Vertical scrolling

the new and improved sim is now on my page. credit to archmage and shadow_7283.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#8 2010-05-06 23:42:43

frozenveinz
Scratcher
Registered: 2010-04-24
Posts: 28

Re: Vertical scrolling

shadow_7283 wrote:

I will try to put it in blocks, but here is the basic concept. Vertical scrolling is the exact same thing as horizontal scrolling, but instead of saying *480, you say *360
so for each terrain say:

set x to scroll x + 360 * [terrain #]

I tried that, but my "terrains" ended up being all diagonal to eachother


http://i970.photobucket.com/albums/ae184/frozenveinz/RickRoll.gif

Offline

 

#9 2010-05-07 17:20:50

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Vertical scrolling

frozenveinz wrote:

shadow_7283 wrote:

I will try to put it in blocks, but here is the basic concept. Vertical scrolling is the exact same thing as horizontal scrolling, but instead of saying *480, you say *360
so for each terrain say:

set x to scroll x + 360 * [terrain #]

I tried that, but my "terrains" ended up being all diagonal to eachother

forever
set x to 0.
how did you find this thread?


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

Board footer