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

#1 2011-06-23 19:12:50

imnotbobtest
New Scratcher
Registered: 2011-06-23
Posts: 5

How do i make a button...

change the background?

Offline

 

#2 2011-06-23 19:19:03

PlutoIsHades
Scratcher
Registered: 2010-10-18
Posts: 1000+

Re: How do i make a button...

To make a button that goes to the next background, first make the sprite. Next make this script for it:
       
When sprite clicked
Broadcast "Next background"

Then make this script for the stage:

When I receive "Next background"
Next background

Is this what you mean?


Minecraft, Redwall, and Cyberchase fan, and PROUD.

Offline

 

#3 2011-06-23 19:31:36

imnotbobtest
New Scratcher
Registered: 2011-06-23
Posts: 5

Re: How do i make a button...

im not sure, but i think so.

i have two buttons: "dress up a character" and "create a character"
dress up goes to an opening screen, and create goes to a template.
im going to try it though, thanks

and how do i get a button to disappear when one is clicked?

Offline

 

#4 2011-06-23 19:34:07

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: How do i make a button...

Simply add into the button's scripts:

When I receive "Next Background"
Hide


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#5 2011-06-23 20:36:14

imnotbobtest
New Scratcher
Registered: 2011-06-23
Posts: 5

Re: How do i make a button...

Kileymeister wrote:

Simply add into the button's scripts:

When I receive "Next Background"
Hide

thanks

Offline

 

#6 2011-06-23 21:57:02

imnotbob
Scratcher
Registered: 2010-12-11
Posts: 1000+

Re: How do i make a button...

for some reason i cant edit, so... new question: i want a drawer like thing, where i select one thing only. how do i get everything to disappear except that ONE thing


PesterChum Handle: annoyingAnchorman
durp yo terezi sup sup gotta beat john gotta beat john

Offline

 

#7 2011-06-23 22:09:52

MarioLuigi2009
Scratcher
Registered: 2009-12-26
Posts: 63

Re: How do i make a button...

when you want everything to disappear, put this when you want things to hide

[broadcast[hide]]


and for all the things you want to hide,

[when I receive[hide]]
[hide]

Last edited by MarioLuigi2009 (2011-06-23 22:11:25)


http://mag.racked.eu/mcimage/i349/Achievement++get%21/Slammin+Salmon/mca.pnghttp://mag.racked.eu/mcimage/i5007/Achievement++get%21/Smile+for+the+camera/mca.pnghttp://mag.racked.eu/mcimage/i54/Achievement++get%21/Storin+dirt.../mca.pnghttp://www.minecraftanonymous.com/assets/banners/banner_78.png

Offline

 

#8 2011-06-23 23:14:10

imnotbob
Scratcher
Registered: 2010-12-11
Posts: 1000+

Re: How do i make a button...

thanks
smile


PesterChum Handle: annoyingAnchorman
durp yo terezi sup sup gotta beat john gotta beat john

Offline

 

Board footer