ScratchData LogoScratchData
Back to Larry828's profile

Light please

LALarry828•Created February 25, 2010
Light please
5
3
249 views
View on Scratch

Description

Scratch has button costumes built-in that let you turn things on and off. There are two "costumes" for the button: "button" and "button pressed" so you can tell by looking at it whether it's ON or OFF. _____This little demo shows one way to script the button so you can turn the lamp on or off. The button in this case conveniently has its "costume number" written right on it so you can follow the script that controls it. _____The broadcast is received by the background which is either dark or light depending on how you click the button! -----Tip: create a little project with a button and its script, then save it as Button. When you need a button in a new project just go to File, Import Project... and import your little ready-made button! Then just fix the script to tell the button what you want it to do in the new project. --Enjoy! --Larry828

Project Details

Project ID903719
CreatedFebruary 25, 2010
Last ModifiedFebruary 25, 2010
SharedFebruary 25, 2010
Visibilityvisible
CommentsAllowed