This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-08-24 18:33:27

flameswy
Scratcher
Registered: 2010-08-23
Posts: 11

i need some script help, again...

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.


"I am only one man with one heart...Call me a demon, call me a monster...but I can't be the strongest forever...!"
~Whitebeard

Offline

 

#2 2010-08-24 19:25:42

rufflebee
Scratcher
Registered: 2008-10-15
Posts: 1000+

Re: i need some script help, again...

Well, the Sprite's (In this case, it's named Sprite 1) scripts should look something like
http://i33.tinypic.com/zmb6ma.jpg
(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
http://i38.tinypic.com/1589pmr.gif
But you might also want to look into scrolling, which I don't know much about  sad 
This project might help, though.
I'm not sure how to help you with the two player fighting game, either. Good luck, though!  big_smile

Last edited by rufflebee (2010-08-24 19:33:16)


http://i44.tinypic.com/34e9cab.png

Offline

 

#3 2010-08-25 14:39:02

flameswy
Scratcher
Registered: 2010-08-23
Posts: 11

Re: i need some script help, again...

thank you very much, this was very helpful.

big_smile


"I am only one man with one heart...Call me a demon, call me a monster...but I can't be the strongest forever...!"
~Whitebeard

Offline

 

#4 2010-08-26 14:53:24

rufflebee
Scratcher
Registered: 2008-10-15
Posts: 1000+

Re: i need some script help, again...

You're welcome!  big_smile
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  big_smile

Last edited by rufflebee (2010-08-26 14:56:09)


http://i44.tinypic.com/34e9cab.png

Offline

 

#5 2010-08-30 10:40:33

FlexiStudio
Scratcher
Registered: 2010-02-28
Posts: 1000+

Re: i need some script help, again...

If the x position = 230, broadcast an event
When BG receives event switch to next BG/costume


Hey I'm back!-
FlexiStudio

Offline

 

Board footer