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
heres what the script for the scrolling looks like:
sprite 1:
[blocks]
<when I receive[ course
<go to x 0 )y
0
<forever>
<change y by( <{ velocity }>
<end>
[/blocks]
sprite 2:
[blocks]
<when I receive[ course
<go to x 0 )y
360
<forever>
<change y by( <{ velocity }>
<end>
[/blocks]
etc. Please help!
Offline
What you want is:
Terrain1:
<when green flag clicked>
<forever>
<go to x 0)y
<{ scrollY }>
<end>
Terrain2:
<when green flag clicked>
<forever>
<go to x 0)y
<{ ((scrollY }> <+> 360))
<end>
Last edited by Zelda123 (2009-05-23 13:48:46)
Offline
Zelda123 wrote:
What you want is:
Terrain1:
<when green flag clicked>
<forever>
<go to x0)y
<{ scrollY }>
<end>
Terrain2:
<when green flag clicked>
<forever>
<go to x0)y
<{ ((scrollY }> <+> 360))
<end>
Thanks! that really helps!
Offline