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

#1 2012-11-17 20:52:57

scrach123456789
New Scratcher
Registered: 2012-11-17
Posts: 1

how do i make a button?

i want to make a play button. how?

Offline

 

#2 2012-11-17 20:57:37

gfchll
Scratcher
Registered: 2012-04-21
Posts: 100+

Re: how do i make a button?

well, you need a sprite that looks like a button.

 when gf clicked
forever
if <touching [mouse pointer v]?>
switch to costume [darker button v]// the button will become darker
wait until <not<touching [mouse pointer v] ?>>
switch to costume [first costume v]
end
if <<touching [mouse pointer v]?> and <mouse down?>>
broadcast [start game v]
hide
end
i hope this helps

Last edited by gfchll (2012-11-17 20:58:51)


HELLO EVERYBODY!

Offline

 

#3 2012-11-17 21:22:22

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: how do i make a button?

Scratch doesn't have a button option, but it's really easy to make any of your sprites buttons! Basically, just use the block

When [sprite] clicked
and then put whatever you want to happen when the user clicks a button below that block.  wink

Last edited by stevetheipad (2012-11-17 21:22:30)


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#4 2012-11-17 23:55:38

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

Re: how do i make a button?

It also depends how you want it. gfchll's way is more complex while stevetheipad's is simple and you should probably use that one first before doing anything more complicated.


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

 

Board footer