Turn a light on or off

21 views
Skip to first unread message

Bruce Sherwood

unread,
Aug 8, 2017, 10:49:32 AM8/8/17
to Glowscript Users
In GlowScript 2.6 the distant_light and local_light objects now have a visible attribute. Set it to True (the default) to turn on the light, or to False to turn it off. You can make a flashing light simply by arranging a regularly timed oscillation of visible between True and False.

Reply all
Reply to author
Forward
0 new messages