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

#1 2009-05-23 13:07:54

Squeezycheesecake
Scratcher
Registered: 2008-10-18
Posts: 74

Scrolling glitch-help?

well, i'm making a snowboarding game with y scrolling, but it's really simple (jut changing y by the velocity) and it keeps glitching on me. I've set Y to the right posistion at the start, and the first sprite scrolls fine, but then it skips out 3  sprites and goes straight on scrolling to the last one! Each sprite has identical scripts (except the starting Y posistion) and i can't figure it out. If anyone has any suggestions or maybe a better method of scrolling it would be really appreciated  smile

heres what the script for the scrolling looks like:
sprite 1:
[blocks]
<when I receive[ course
<go to x sad  0 )y sad  0
<forever>
<change y by( <{ velocity }>
<end>
[/blocks]

sprite 2:
[blocks]
<when I receive[ course
<go to x sad  0 )y sad  360
<forever>
<change y by( <{ velocity }>
<end>
[/blocks]

etc. Please help!


-cheesecake is squeezy.

Offline

 

#2 2009-05-23 13:30:05

Mozaz
Scratcher
Registered: 2009-05-19
Posts: 500+

Re: Scrolling glitch-help?

Maybe if you upload the project, we can get a better understanding of what you mean.


http://i33.tinypic.com/15i5fmp.png

Offline

 

#3 2009-05-23 13:47:44

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

Re: Scrolling glitch-help?

What you want is:

Terrain1:

<when green flag clicked>
<forever>
<go to x sad 0)y sad <{ scrollY }>
<end>

Terrain2:


<when green flag clicked>
<forever>
<go to x sad 0)y sad  <{ ((scrollY }> <+>  360))
<end>

Last edited by Zelda123 (2009-05-23 13:48:46)

Offline

 

#4 2009-05-23 14:07:39

Squeezycheesecake
Scratcher
Registered: 2008-10-18
Posts: 74

Re: Scrolling glitch-help?

Zelda123 wrote:

What you want is:

Terrain1:

<when green flag clicked>
<forever>
<go to x sad 0)y sad <{ scrollY }>
<end>

Terrain2:


<when green flag clicked>
<forever>
<go to x sad 0)y sad  <{ ((scrollY }> <+>  360))
<end>

Thanks! that really helps!


-cheesecake is squeezy.

Offline

 

Board footer