I'm trying to make a game with a scrolling background. what I do is this.
when right arrow is pressed if background=1 switch background to background 2.
when I do this the stage keeps going. I know why. but is there a way to stop?
or is there a better way?
Offline
when not right arrow pressed background = 1
use this << <not> >>
Offline
CDromatron wrote:
I'm trying to make a game with a scrolling background. what I do is this.
when right arrow is pressed if background=1 switch background to background 2.
when I do this the stage keeps going. I know why. but is there a way to stop?
or is there a better way?
Well, you could do when right arrow is pressed next costume, and for the other way like left, do switch to costume costume # - 1
that's all I can really say, unless you would want to do an easier thing such as just making the background a different sprite and then doing scrolling but, that's not what you asked so =P
I hope I helped you...
-Spine
Offline
So wait, if I understand you, your stage is scrolling because you have different costumes that are changing but nothing is actually moving?
That is not the right way to do things. Try looking at this http://scratch.mit.edu/forums/viewtopic.php?id=2440
Offline