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

#1 2012-03-22 12:22:50

FINGIN
Scratcher
Registered: 2010-10-19
Posts: 100+

Scrolling help.

I know this is like a such a newb/noob question but i've completely forget some things about scrolling. Its the method with scrollX and stuff, 480 and whatever. it goes right in the middle I need it down lower. like you know a mario game? the whole bottom chunk/terrain,_______=floor ()=player




___________________________



()
=bad





()___________________________
=good

right?? so what do I do? I tried making the 480 lower and the 0 lower it just didn't go nicely, I know 480 is the screen size thats why everyone uses it but I need it lower. Probably something to do with the Y axis, Ill experiment with scrollY script but please post what you can to help/


Problem officer?       http://trollosphere.legtux.org/wp-content/uploads/2012/01/Troll-Face-4efef98405000.png

Offline

 

#2 2012-03-22 12:37:51

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scrolling help.

You're right about looking for something to do with the Y axis, the height. However 480 is the width, not height, of the screen, so you're going to need something different. Try adding in this block to the script (it only needs to run once, at the start of the game).

set y to (-200)
You can adjust the value to match how low it needs to be. -200 is probably a bit too low. Tell me if it's what you needed!

Offline

 

#3 2012-03-22 15:19:01

ScratchOS
Scratcher
Registered: 2012-03-20
Posts: 53

Re: Scrolling help.

360 is the height

Offline

 

#4 2012-03-22 16:56:23

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: Scrolling help.

This should help.

Offline

 

#5 2012-03-28 17:09:23

ScratchOS
Scratcher
Registered: 2012-03-20
Posts: 53

Re: Scrolling help.

set y to (YScroll)+360*0

Offline

 

Board footer