Hello
I have a question: I try to crate a game. when the gaming figure touches the right edge, the background should change and the gaming figure should appear on the left edge. Also, all the objects used with the old background should disappear and new objects should appear with the new background. is that possible?
thank you very much for your help!
Offline
First, open up the background in the paint editor, and add a shape of a different colour to the rest of the game (for now, let's say red) that is where you want the sprite to reach. Then, on the sprite that you can control, add this script:
Now, you'll need a script to recieve this broadcast on the background:
And you said that you wanted to hide some other sprites at the same time? No problem - put this into all of the ones that you want to hide:
And showing other sprites at the same time is just as easy - add this script to all the ones that you need to show:
Remember the original controlled sprite? You might want to move it off of the red after it's done its job: (I used variables to show that you should type a number there):
Hope this helps! Any questions, feel free to ask.
Last edited by Wolfie1996 (2010-01-11 12:42:32)
Offline