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

#1 2012-10-30 00:14:27

aqweb
New Scratcher
Registered: 2012-10-29
Posts: 8

Button to advance background

Hi,

Can someone help me with setting a button to go to a specific background?

  I have a button and then a buttonPressed. When I click the button it switches to the costume buttonPressed. This is set as a script within the sprite "button."

  Would this be an if statement as a script in the background itself. Can yo tell me how to go about this?

Thanks,

Angela

taking CS50 online

Offline

 

#2 2012-10-30 00:36:52

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Button to advance background

In the button, put this:

when [myButton] clicked
broadcast [chBkgnd v]
Then, on the stage put:

when I receive [chBkgnd v]
next background

Last edited by BoltBait (2012-10-30 00:37:55)


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

Board footer