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

#1 2009-05-27 09:21:04

SonicKJKH
Scratcher
Registered: 2008-12-06
Posts: 100+

X and Y scrolling in the same game.

Okay, I'm clueless when it comes to y scrolling so can somebody please help me? I'm excellent with x scrolling, but I would like to learn how to combine the two together with some touch of x and y velocity. (velocity not needed)

Offline

 

#2 2009-05-27 11:53:33

Mozaz
Scratcher
Registered: 2009-05-19
Posts: 500+

Re: X and Y scrolling in the same game.

Y scrolling is exactly the same as X scrolling, just with some values changed.

You know in X scrolling you have the number 480? Well this is the width of the stage. If you are using Y scrolling then you went to use the height of the stage, not the width, so you replace the number 480 with 360.


http://i33.tinypic.com/15i5fmp.png

Offline

 

#3 2009-05-27 12:09:04

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

Re: X and Y scrolling in the same game.

If you really understood x scrolling then y scrolling should be easy. You probably just memorized the code without knowing how it works. It is very very basic stuff.

Anyways just use this project as an example http://scratch.mit.edu/projects/archmage/100982


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

 

#4 2009-05-27 12:33:56

SonicKJKH
Scratcher
Registered: 2008-12-06
Posts: 100+

Re: X and Y scrolling in the same game.

Thanks Guys, I'm gonna test it out after I bake these cookies XP!

Offline

 

#5 2009-05-27 16:47:45

technoman
Scratcher
Registered: 2008-07-24
Posts: 500+

Re: X and Y scrolling in the same game.

I have a project on y and x scrolling in the same project if you want to see it.

Offline

 

#6 2009-06-30 15:39:25

midnightwine
Scratcher
Registered: 2008-12-28
Posts: 14

Re: X and Y scrolling in the same game.

If You Are looking for jump scrolling check out my latest projects.

Offline

 

#7 2009-06-30 16:52:52

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: X and Y scrolling in the same game.

This is a project with perfect x and y scrolling: http://scratch.mit.edu/projects/demosthenes/478227


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

Board footer