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

#1 2012-07-06 19:34:35

computerexpertFELIX
Scratcher
Registered: 2012-05-10
Posts: 5

Toggle Buttons in a Scratch Project!

Just simply add as many sprites as you want toggle buttons.
They have to have the button and the buttonPressed images as costumes.
Now add this script on all of the togglebuttons (only lets 1 checked at the same time)

when [self] clicked
next costume
if [costume # v] of [buttonSprite v] = [2]
switch to costume [button v]
Done!

Last edited by computerexpertFELIX (2012-07-06 19:56:13)

Offline

 

#2 2012-07-06 19:39:05

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Toggle Buttons in a Scratch Project!

computerexpertFELIX wrote:

Just simply add as many sprites as you want toggle buttons.
They have to have the button and the buttonPressed images as costumes.
Now add this script on all of the togglebuttons (only lets 1 checked at the same time)

when [self] clicked
next costume
if <([costume # v] of [buttonSprite v]) = (2)>
switch to costume [button v]
Done!

Scripts fixed.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

Board footer