does anyone have a good script that can change the background when a sprite hits the end of the screen?
also, i could use some advice on making a two player fighter game...
such as the script that keeps track on damage, and which buttons are best on the keyboard.
Offline
Well, the Sprite's (In this case, it's named Sprite 1) scripts should look something like
(But the position depends on your game. These scripts came from this "game" that I made to help you. So, if you don't get it, try downloading that.)
And the background's script should look like
But you might also want to look into scrolling, which I don't know much about
This project might help, though.
I'm not sure how to help you with the two player fighting game, either. Good luck, though!
Last edited by rufflebee (2010-08-24 19:33:16)
Offline
You're welcome!
If you have any more questions about scripts, or anything else about Scratch, you can ask them in the All About Scratch forum. You'd probably get a quicker response if you ask in there, since that section of the forums is dedicated to answering questions about Scratch, unlike this one (New Scratch Members) which was made to help introduce yourself to the community
Last edited by rufflebee (2010-08-26 14:56:09)
Offline
If the x position = 230, broadcast an event
When BG receives event switch to next BG/costume
Offline