ScratchStats LogoScratchStats

ScratchStats

Explore Scratch statistics and discover trending projects and creators.

Community

  • Apply for Verified
  • Apply for Reviewer

More

  • Donate
Not affiliated with Scratch.
Back to CobramCat's profile

Security

COCobramCat•Created November 5, 2016
0
0
32 views
View on Scratch
View on TurboWarp

Instructions

The object is stated on the first page. Everything works perfectly up to the point of illuminating the light panel.

Notes & Credits

I originally wrote this under HTML and javascript. It appears in that form at http://members.iinet.net.au/~brianjnow/Switched%20On.html. In that I used two arrays (lists) to understand and control the status of lights and switch buttons. Here I have employed the same concept with "MyNumber" for switches and "LightOn" for the lamps. The switches are clones and when selected their status is shown in MyNumber. When a switch is selected it can influence the status from 1 to 3 lights, and that appears in LightOn; only when a slot holds a "0" is the lamp off - one lamp status can actually be at 4! Each light image is a clone. The list "MyGlow" is a lamp index and was introduced to attempt to communicate the need for a costume change. ------------------------------------------------------------------------------------------------ At this point I must recognise the advices of asivi and drmcw who provided at Having Clones of Two Sprites Communicate - https://scratch.mit.edu/discuss/topic/222596/?page=1#post-2258043.

Project Details

Project ID129245292
CreatedNovember 5, 2016
Last ModifiedJanuary 27, 2021
SharedNovember 5, 2016
CommentsAllowed