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

#1 2011-07-31 21:08:57

babbet
Scratcher
Registered: 2011-07-23
Posts: 100+

start button, and background

i already know how to make a start button but when you click the start button how does the background know how to switch?????


https://lh3.googleusercontent.com/-SBVvDiIX0PY/Tm6OBd27mnI/AAAAAAAABR4/b--gXKoPlkU/babbet400x150.jpg

Offline

 

#2 2011-07-31 21:13:21

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: start button, and background

/When start button clicked\
[broadcast change background]

/When I receive change background\
[switch to costume [-----------]]

Does that help?  big_smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#3 2011-07-31 21:21:32

babbet
Scratcher
Registered: 2011-07-23
Posts: 100+

Re: start button, and background

do you write the script for the background or the sprite?


https://lh3.googleusercontent.com/-SBVvDiIX0PY/Tm6OBd27mnI/AAAAAAAABR4/b--gXKoPlkU/babbet400x150.jpg

Offline

 

#4 2011-07-31 21:26:46

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: start button, and background

The start button clicked script goes in the button sprite and the other script goes in the background sprite  wink


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#5 2011-07-31 21:26:58

MountainBoy
Scratcher
Registered: 2010-07-25
Posts: 34

Re: start button, and background

the first script is for the sprite.
the second for the backround.

Offline

 

#6 2011-07-31 21:32:24

babbet
Scratcher
Registered: 2011-07-23
Posts: 100+

Re: start button, and background

thanks that really helps!!!!!!!


https://lh3.googleusercontent.com/-SBVvDiIX0PY/Tm6OBd27mnI/AAAAAAAABR4/b--gXKoPlkU/babbet400x150.jpg

Offline

 

#7 2011-08-01 01:57:18

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: start button, and background

If you still need help, I am always here for anyone to lend a helping hand.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&link4=http://i.imgur.com/POEpQyZ.png&link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#8 2011-08-01 17:27:42

xdcomputerkid
New Scratcher
Registered: 2011-08-01
Posts: 6

Re: start button, and background

[blocks]
1 way:
<when green flag clicked>
<broadcast[next background]>

<when I receive[next background]>
<next costume>

Another way:
<when green flag clicked>
<wait(time here)secsc>
<next costume>
[/blocks]

BTW, next costume would be next background on the stage.

Offline

 

#9 2011-08-01 17:31:08

xdcomputerkid
New Scratcher
Registered: 2011-08-01
Posts: 6

Re: start button, and background

<wait(  )secsc>

xdcomputerkid wrote:

[blocks]
1 way:
<when green flag clicked>

<broadcast[next background]>

<when I receive[next background]>

<next costume>

Another way:
<when green flag clicked>

<wait(time here)secsc>

<next costume>
[/blocks]

BTW, next costume would be next background on the stage.

Here is the correction.

Offline

 

#10 2011-08-01 17:37:03

xdcomputerkid
New Scratcher
Registered: 2011-08-01
Posts: 6

Re: start button, and background

xdcomputerkid wrote:

<wait(  )secsc>

xdcomputerkid wrote:

[blocks]
1 way:
<when green flag clicked>

<broadcast[next background]>

<when I receive[next background]>

<next costume>

Another way:
<when green flag clicked>

<wait(time here)secsc>

<next costume>
[/blocks]

BTW, next costume would be next background on the stage.

Here is the correction.

OK, here are both of the ways: (Copy them into the address bar and click enter to go to them.)

Way 1:
http://i55.tinypic.com/15zks5z.gif

Way 2:
http://i56.tinypic.com/wuqsmv.gif

Offline

 

#11 2011-08-01 23:15:31

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: start button, and background

Post the project and give us a link. Then we can help more.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&amp;link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&amp;link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#12 2011-08-04 18:54:59

mrdinosaur
Scratcher
Registered: 2010-01-13
Posts: 100+

Re: start button, and background

Make sure you have a broadcast button. For instance, when i have a title i have the start showing. Use this script for your background:

When I recieve Game/Idk
Switch to background2 (or whatever)

Then make the start button:

When Start Is Clicked
  Broadcast game/idk
   hide


Hope that was helpful!


http://www.xboxlc.com/cards/newblack/BuffetSnake008.jpg Add me on XBL! Check out my newest games/animations!

Offline

 

#13 2011-08-04 22:08:21

babbet
Scratcher
Registered: 2011-07-23
Posts: 100+

Re: start button, and background

everyone helped very much thank you!!!


https://lh3.googleusercontent.com/-SBVvDiIX0PY/Tm6OBd27mnI/AAAAAAAABR4/b--gXKoPlkU/babbet400x150.jpg

Offline

 

#14 2011-08-04 22:32:42

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: start button, and background

Thank you for asking!


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&amp;link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&amp;link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#15 2011-08-05 00:12:39

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: start button, and background

Looks like this thread is resolved, but for future reference, questions about programming with Scratch generally go in the All About Scratch forum. I've moved it for you, but bear in mind that you're more likely to get a response helping you with your problem if you post in the appropriate forum.  smile


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer