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

#1 2011-04-19 20:46:35

jnev
New Scratcher
Registered: 2011-04-18
Posts: 2

Button-Pressing Help

I'm not sure if this is exactly an "Advanced Topic," but I am pretty new, and I was wondering how to make it so that if a person presses a button on my game-in-the-making, then it will change the background and then disappear.  The trick is that it should be that they don't have to press EXACTLY on the x- and y- axes.  Thanks!

Offline

 

#2 2011-04-19 21:06:37

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: Button-Pressing Help

For the button, use:
[blocks]
<when[ button ]clicked>
<broadcast[ clicked
<hide>
[/blocks]

And for the stage, use:
[blocks]
<when I receive[ clicked
<next costume>
<hide>
[/blocks]

Does this help?


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#3 2011-04-19 21:20:48

jnev
New Scratcher
Registered: 2011-04-18
Posts: 2

Re: Button-Pressing Help

Thanks! It really helped!

Offline

 

Board footer