Hey everyone, I'm making a game where two mice hunt for cheese and defeat bosses, but I'm puzzled on how to do the following:
To make it so when one of the sprites(the game is two player) walks into the very right of the stage, the stage will switch to the next level background and the sprite will appear at the very left of the new background.
Any ideas?
Offline
Hi there! Welcome to Scratch! To do what you are saying, I would put the following scripts on the sprite:
when gf clicked forever if <(x position) > [200]> broadcast [Next Level v] stop script endAnd I would put these scripts on the stage:
when gf clicked switch to background [First Level v] when I receive [Next Level v] switch to background [Second Level v]Hope that helps!
Offline
shivadas wrote:
Hi there! Welcome to Scratch! To do what you are saying, I would put the following scripts on the sprite:
when gf clicked forever if <(x position) > [200]> broadcast [Next Level v] stop script endAnd I would put these scripts on the stage:when gf clicked switch to background [First Level v] when I receive [Next Level v] switch to background [Second Level v]Hope that helps!
Exactly what I needed, thanks a bunch!
Offline