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

#1 2010-03-19 23:14:09

Wildcat2012
Scratcher
Registered: 2010-03-16
Posts: 65

Help - backgroud to change when i press a button?

HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
i am trying to get my backgroud to  change when i press a button but i cant get the background to change what should i do


http://i43.tinypic.com/w7hjds.jpghttp://i43.tinypic.com/263yjaa.jpghttp://img337.imageshack.us/img337/8303/ubd6817.png
Check this out

Offline

 

#2 2010-03-20 01:57:18

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Help - backgroud to change when i press a button?

If you want help, it's best to make a thread about it rather than bump an existing one if it isn't related. ;)

As for your question, what will the background change to? If you want it to move to the next one, use the [next background] block. For the previous one, use [switch to background [(((background)) - (1))]. For specific ones, you'll need to code them seperately...


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#3 2010-03-20 03:48:53

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Help - backgroud to change when i press a button?

Wildcat2012 wrote:

HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
i am trying to get my backgroud to  change when i press a button but i cant get the background to change what should i do

Hi Wildcat2012 -  I broke your question out into it's own topic.  In the future, please use the "Post new topic" in the upper right area of the page to make a new topic of your own.

You probably want the Broadcast block.  Here's a tutorial that might help you out:

http://scratch.mit.edu/projects/Larry828/908057

Scratch on!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2010-03-21 11:19:22

kittymewgirl
Scratcher
Registered: 2009-07-18
Posts: 39

Re: Help - backgroud to change when i press a button?

<when[  ]key pressed><switch to costume[

or

<when[  ]key pressed><next costume>


I'm a voice actor!  I'm a 15 year old girl so if you need a girly voice, let me know and I'll see if I can do it!  smile

Offline

 

#5 2010-03-21 15:25:03

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Help - backgroud to change when i press a button?

Wildcat2012 wrote:

HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
i am trying to get my backgroud to  change when i press a button but i cant get the background to change what should i do

A button? A button normally means either a button on screen or a button on the keyboard. So...

Button on screen:
[blocks]
<when[ button ]clicked>
<switch to costume[(background)
[/blocks]

Or use
[blocks]
<when[ button ]clicked>
<next costume>
[/blocks]

Button on keyboard:
[blocks]
<when[  ]key pressed>
<switch to costume[(background)
[/blocks]

Or use
[blocks]
<when[  ]key pressed>
<next costume>
[/blocks]

Hope that helps!


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

Board footer