I have one sprite and several stages. I want my sprite to 'walk' through all of the stages. How do I get the stage to move to the next one when it touches the right edge of the current stage?
I already figured out how to move my sprite from the right side of the stage to the left, now I need to get the stage to change. Please help, I am new to this and can't find this answer anywhere. I know it must be fairly simple.
Offline
put this script on the sprite:
<when green flag clicked>
<forever>
<if><touching[ edge
<broadcast[ go to next costume
<go to x -180 )y -78
then give this script to the stage:
<when I receive[ go to next costume
<switch to costume[ next costume
<when green flag clicked>
<switch to costume[ begining costume
i think that'll work
Last edited by funkymonkey (2008-10-26 15:03:17)
Offline
in touching edge script, do this:
[blocks]
<broadcast[ stage-change ]>
[/blocks]
In stage:
<when I receive[ stage-change ]>
<next costume>
Offline