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?
Link to project:
http://scratch.mit.edu/projects/Sunrise-Moon/1178050
Last edited by Sunrise-Moon (2010-07-07 22:46:56)
Offline
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)
Offline
You're problem is in the y position script:
Set y to [ (scrolly + 255) * 0 ]
((scrolly + 255) * 0) will always be 0, so the y won't change. It needs this format:
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.
Last edited by Harakou (2010-07-07 23:05:50)
Offline
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.
![]()
Problem resolved http://scratch.mit.edu/projects/TeleTutorials/1178085 here
Offline