I'm working on a new racing game. The race car itself will not actually move up and down; the road will. The road will move down at the speed of the car. I tried having two road sprites that would constantly follow each other (they would be linked together by the ends, moving downwards). It's not working, and I can't figure out what to do.
Can anyone help me?
Thanks,
Silvershine
Offline
heres a very glitchy way of doing it http://scratch.mit.edu/projects/ssss/1503287
Offline
Now i have fixed it to a pretty good degree http://scratch.mit.edu/projects/ssss/1503291
Now this is the best one so far http://scratch.mit.edu/projects/ssss/1503302
Last edited by ssss (2010-12-27 00:15:48)
Offline
Okay, if you want to have a limited number of sprites for scrolling, you will need to have at least three for it to work. What will happen, is that all the sprites will have their own variable called "offset" and whenever the screen passes that sprite, it will increase the offset, which you add to your scrolling variable to go forward. However, if you also need to go backwards, you will need to also have a script for to lower offset, which you could check by looking at your scrolling variable + offset.
Hope this helps!
Offline
XplodingEggs wrote:
Okay, if you want to have a limited number of sprites for scrolling, you will need to have at least three for it to work. What will happen, is that all the sprites will have their own variable called "offset" and whenever the screen passes that sprite, it will increase the offset, which you add to your scrolling variable to go forward. However, if you also need to go backwards, you will need to also have a script for to lower offset, which you could check by looking at your scrolling variable + offset.
Hope this helps!![]()
Is the forward one what mine does?
Offline
or, if you want something easier
project
that's how you make a sprite bigger than the screen (so only one sprite is scrolling)
Last edited by deatheater (2010-12-27 01:37:51)
Offline
silvershine wrote:
Thanks for your help everyone! I fixed the problem.
![]()
Okay, great!
Offline
uhh sry<play sound want want waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Offline