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

#1 2011-04-13 11:15:11

Severus14
Scratcher
Registered: 2011-02-03
Posts: 62

Scroll Y?

I NEED HELP AGAIN! I know how to use scroll X, but Scroll Y is still a mystery to me! I tried to do it the complicated way, like this: When green flag pressed,set ScrollY to YVelocity * -1, but that didn't seem to work! Please Help!  sad

Offline

 

#2 2011-04-13 11:20:42

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Scroll Y?

ScrollY should be similar to ScrollX...  hmm

Offline

 

#3 2011-04-13 11:26:39

Severus14
Scratcher
Registered: 2011-02-03
Posts: 62

Re: Scroll Y?

scimonster wrote:

ScrollY should be similar to ScrollX...  hmm

Um... Thanks, but not really much help...

Offline

 

#4 2011-04-13 14:11:16

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: Scroll Y?

I made a game that uses Scroll Y. Try downloading and taking a look!
http://scratch.mit.edu/projects/silvershine/1514902
Or check it this project: http://scratch.mit.edu/projects/Extremos/716662

Last edited by silvershine (2011-04-13 14:11:30)

Offline

 

#5 2011-04-13 17:53:35

jcpopp
Scratcher
Registered: 2010-10-30
Posts: 100+

Re: Scroll Y?

I think when you make scroll y, it should be almost opposite to scroll x.  I tried making a scoll y and scroll x, too, but that didn't work just because the race track wasn't completely symmetric.


Join Nitro Type! It really improves your typing skills  big_smile

Offline

 

#6 2011-04-13 18:08:03

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Scroll Y?

Just something like:
http://i56.tinypic.com/2cmm7p4.gif
should work fine, and adding a script to the player that changes the ScrollY variable will make it move accordingly.  Just change ScrollY by a negative number to make the player go up, change it by a positive number to make the player go down.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#7 2011-04-14 19:35:50

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: Scroll Y?

I have a X and Y scroll platformer. (Side view)
Here if you want to see it
http://scratch.mit.edu/projects/what-the/1003864 (use Flash player)


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#8 2011-04-14 20:24:44

lemonpretzel
Scratcher
Registered: 2008-10-23
Posts: 100+

Re: Scroll Y?

Instead of "set x to scrollx + 480*1", do "set y to scrolly+360*1"
This is because the length of the stage from left to right(x) is 480, and from up to down(y) is 360.

Offline

 

#9 2011-04-21 03:35:51

spkshark
Scratcher
Registered: 2011-03-05
Posts: 65

Re: Scroll Y?

Take Super Mario. ScrollX is for walking and running, and scrollY is for jumping and ducking!
smile


http://d2bm3ljpacyxu8.cloudfront.net/width/300/crop/0,0,300x145/spkshark.webs.com/scratch%20script.gif

Offline

 

Board footer