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

#1 2010-07-07 22:43:25

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Scrolling Problems

I'm having scrolling problems on a project I'm working on- the first 'level' thing won't scroll up or down, it just stays in the same place. All the other sprites are scrolling at least a bit. Can anyone help?  smile

Link to project:
http://scratch.mit.edu/projects/Sunrise-Moon/1178050

Last edited by Sunrise-Moon (2010-07-07 22:46:56)


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#2 2010-07-07 22:47:32

Telemachus
Scratcher
Registered: 2010-04-21
Posts: 500+

Re: Scrolling Problems

Can you post a link, perhaps? I don't really understand what the problem is, exactly.
Edit: oops, sorry.

Last edited by Telemachus (2010-07-07 22:47:56)


http://i54.tinypic.com/10h0fnp.jpg

Offline

 

#3 2010-07-07 23:05:03

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Scrolling Problems

You're problem is in the y position script:

Code:

Set y to [ (scrolly + 255) * 0 ]

((scrolly + 255) * 0)  will always be 0, so the y won't change. It needs this format:

Code:

Set y to [ scrolly + (255 * 0) ]
(Aka "Set y to [scrolly])"

That script needs to be changed to that format in all 4 level sprites, actually.  hmm

Last edited by Harakou (2010-07-07 23:05:50)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2010-07-07 23:07:31

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Scrolling Problems

Oooh! Thanks bunches!


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#5 2010-07-07 23:10:39

TeleTutorials
New Scratcher
Registered: 2010-07-06
Posts: 1

Re: Scrolling Problems

Harakou wrote:

You're problem is in the y position script:

Code:

Set y to [ (scrolly + 255) * 0 ]

((scrolly + 255) * 0)  will always be 0, so the y won't change. It needs this format:

Code:

Set y to [ scrolly + (255 * 0) ]
(Aka "Set y to [scrolly])"

That script needs to be changed to that format in all 4 level sprites, actually.  hmm

Problem resolved http://scratch.mit.edu/projects/TeleTutorials/1178085 here  smile

Offline

 

Board footer