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

#1 2012-03-10 11:53:36

CoolGamesCY
New Scratcher
Registered: 2012-03-03
Posts: 15

X and Y Scrolling??

I want to make a game with x and y scrolling like the scrolling in classic zelda or pokemon
games.

Please help!?

Offline

 

#2 2012-03-10 12:04:30

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: X and Y Scrolling??

http://scratch.mit.edu/forums/viewtopic … 0#p1113960 is a tutorial on Scrolling.

You can use the objects as the ground for the character to move on.

Offline

 

#3 2012-03-10 12:13:48

Geekish
Scratcher
Registered: 2012-03-10
Posts: 100+

Re: X and Y Scrolling??

There are Many, MANY tutorials about how to scroll. i just spotted a project tutorial on how to  use scroll X. I'll post details soon.

~Geekish


http://dl.dropbox.com/u/33551365/yesssss.png

Offline

 

#4 2012-03-10 12:13:52

CoolGamesCY
New Scratcher
Registered: 2012-03-03
Posts: 15

Re: X and Y Scrolling??

Thanks. Is there any other way because I don't understand that one

Offline

 

#5 2012-03-10 13:02:58

MistralWing
Scratcher
Registered: 2012-02-17
Posts: 43

Re: X and Y Scrolling??

It's not scrolling but creates the impression of moving to a new area:

For your moving sprite:

Forever if X position is >230               <-  (practically off-screen)
move -450 steps
broadcast "next background" and wait

(the stage changes,and other sprites move into their places)

Might not be what you're looking for,but it works well enough for me  smile
The only problem you may have is with the enemies,though-they may not "scroll" easily,but you could keep it to them appearing and disappearing in different places when they receive "next background"

It also works the other way around :at -230,you could move back a background to a previous area

Offline

 

#6 2012-03-10 14:32:40

CoolGamesCY
New Scratcher
Registered: 2012-03-03
Posts: 15

Re: X and Y Scrolling??

does that make it so the main hero isn't moving but the background is?? I got the x scroll doing that

Offline

 

#7 2012-03-10 14:49:33

MistralWing
Scratcher
Registered: 2012-02-17
Posts: 43

Re: X and Y Scrolling??

It doesn't:sorry, was that what you were looking for?

The background doesn't scroll but changes when the character moves to the edge of the screen.
The character reappears at the opposite side of the screen in a new environment,but from the sound of things I don't think you're looking for this kind of scene jump!

Offline

 

#8 2012-03-10 15:49:54

CoolGamesCY
New Scratcher
Registered: 2012-03-03
Posts: 15

Re: X and Y Scrolling??

Nvm i figured it out

Offline

 

Board footer