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

#1 2008-06-26 07:19:28

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Scrolling up

Hi i'm making a scroller but instead of going left and right(x) it goes up and down(y). The only problem is when my character jumps, and lands on the platform, he dosen't land just goes back to the main platform does anyone know the script for land on a platform after you jump


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#2 2008-06-26 13:58:40

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Scrolling up

I've never tried Y scrollign with platforms.... I would have to assume that he uses basic sensing and also has to change the y scrolling


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-06-26 15:17:17

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Scrolling up

Do it just like how you would do horizontal scrolling.

Set Y position to ScrollY + (360 * 0)  for the first one.
                        ScrollY + (360 * 1) for the second.

You use 360 because that's the height of the screen.


Use block sensors and set the ghost effect to 100 for both of them.
If character is touching sensor1 or sensor2 use regular velocity script. If not (touching sensor1 or sensor2) change scrollY by VelocityY.

Offline

 

#4 2008-06-26 16:22:50

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Scrolling up

Zelda123 wrote:

Do it just like how you would do horizontal scrolling.

Set Y position to ScrollY + (360 * 0)  for the first one.
                        ScrollY + (360 * 1) for the second.

You use 360 because that's the height of the screen.


Use block sensors and set the ghost effect to 100 for both of them.
If character is touching sensor1 or sensor2 use regular velocity script. If not (touching sensor1 or sensor2) change scrollY by VelocityY.

sorry i do not understand the last paragraph at all...


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#5 2008-06-26 16:54:09

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Re: Scrolling up

Hey!

Basically, take a scrolling scenario which uses "scrollX" and change the varible to "scrollY". Also make it so when you set the scrollX on the orginal, change it to "set the scrollY".

If that makes sense  tongue

~ Dan01  wink


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

#6 2008-06-26 18:31:10

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Scrolling up

joeisawesome wrote:

Zelda123 wrote:

Do it just like how you would do horizontal scrolling.

Set Y position to ScrollY + (360 * 0)  for the first one.
                        ScrollY + (360 * 1) for the second.

You use 360 because that's the height of the screen.


Use block sensors and set the ghost effect to 100 for both of them.
If character is touching sensor1 or sensor2 use regular velocity script. If not (touching sensor1 or sensor2) change scrollY by VelocityY.

sorry i do not understand the last paragraph at all...

Make 2 sprites with width of the full screen( 360) and about a height of 1/3 of the screen.
Take a look at this project; it uses horizontal yellow sensors. Do the same except vertically.
http://scratch.mit.edu/projects/Zelda123/185346

Offline

 

#7 2008-06-26 18:56:15

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Scrolling up

Zelda123 wrote:

joeisawesome wrote:

Zelda123 wrote:

Do it just like how you would do horizontal scrolling.

Set Y position to ScrollY + (360 * 0)  for the first one.
                        ScrollY + (360 * 1) for the second.

You use 360 because that's the height of the screen.


Use block sensors and set the ghost effect to 100 for both of them.
If character is touching sensor1 or sensor2 use regular velocity script. If not (touching sensor1 or sensor2) change scrollY by VelocityY.

sorry i do not understand the last paragraph at all...

Make 2 sprites with width of the full screen( 360) and about a height of 1/3 of the screen.
Take a look at this project; it uses horizontal yellow sensors. Do the same except vertically.
http://scratch.mit.edu/projects/Zelda123/185346

I'm sorry you're going x i need y but on the other hand nice game!


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

Board footer