# Unit 6 Lesson 3 Puzzle 8

**URL:** <https://forum.code.org/t/unit-6-lesson-3-puzzle-8/34823>\
**Category:** Website and Tools How-To\
**Created:** [June 16, 2021, 5:50pm UTC](https://forum.code.org/t/unit-6-lesson-3-puzzle-8/34823 "2021-06-16T17:50:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![akarttunen](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@akarttunen](https://forum.code.org/u/akarttunen)\
**Post date:** [June 16, 2021, 5:50pm UTC](https://forum.code.org/t/unit-6-lesson-3-puzzle-8/34823/1 "2021-06-16T17:50:57Z")

</div>

I am having trouble on Unit 6 Leson 3 Bubble 8. I did exactly what the “Do This” instructions told me to do.

- Add code to make the “blink” and “pulse” buttons work.
- In design mode, add a new “off” button.
- Add code to make the “off” button work.  
I make the “blink” and “pulse” buttons work. I add a new “off” button in design mode, then I add code to make the “off” button work. Before I do anything with the “off” button, the “on”, “blink”, and “pulse” buttons work. When I add the “off” code and design, none of them work. What do I do?!

---

<div class="post-metadata">

**Author:** ![AndreaRobNott](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/andrearobnott/32/4871_2.png) [@AndreaRobNott](https://forum.code.org/u/AndreaRobNott)\
**Post date:** [June 16, 2021, 7:41pm UTC](https://forum.code.org/t/unit-6-lesson-3-puzzle-8/34823/2 "2021-06-16T19:41:24Z")

</div>

Hi, @akarttunen,

In order to see exactly how your code is working, please include the share link from the upper left corner of the level. I am guessing that your new code is ‘stepping’ on the other code.

Happy computing,  
Andrea

---

<div class="post-metadata">

**Author:** ![akarttunen](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@akarttunen](https://forum.code.org/u/akarttunen)\
**Post date:** [June 17, 2021, 4:12pm UTC](https://forum.code.org/t/unit-6-lesson-3-puzzle-8/34823/3 "2021-06-17T16:12:13Z")

</div>

[https://studio.code.org/projects/applab/sCBNfPcfoqX9y9omTbhf7TnP-FvelZXk917HD8yaWU4](https://studio.code.org/projects/applab/sCBNfPcfoqX9y9omTbhf7TnP-FvelZXk917HD8yaWU4)

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [June 17, 2021, 5:59pm UTC](https://forum.code.org/t/unit-6-lesson-3-puzzle-8/34823/4 "2021-06-17T17:59:42Z")

</div>

I don’t have my board with me right now, but I was able to get the buttons to trigger a console.log message after I refreshed the page. I also removed the “event” parameter inside the function() calls, but not sure I needed to. (the yellow warning triangles are pointing out that event isn’t used anywhere in the program.)

I’ll try connecting a board later to see if it work.

Mike

---

<div class="post-metadata">

**Author:** ![AndreaRobNott](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/andrearobnott/32/4871_2.png) [@AndreaRobNott](https://forum.code.org/u/AndreaRobNott)\
**Post date:** [June 17, 2021, 6:25pm UTC](https://forum.code.org/t/unit-6-lesson-3-puzzle-8/34823/5 "2021-06-17T18:25:29Z")

</div>

Thanks for the share link!

If you select ‘off’ from the onEvent dropdown, it is creating an event for the screen named ‘off’. Basically, wherever you click the screen (including the buttons for on, blink, and pulse), the light will go off. When I renamed the screen ‘testScreen’, renamed the off button ‘offButton’, and selected ‘offButton’ as the onEvent, it worked as you intended. This is a great example of the importance of descriptive variable names.

Hope that helps,  
Andrea

---

<div class="post-metadata">

**Author:** ![akarttunen](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@akarttunen](https://forum.code.org/u/akarttunen)\
**Post date:** [June 17, 2021, 6:28pm UTC](https://forum.code.org/t/unit-6-lesson-3-puzzle-8/34823/6 "2021-06-17T18:28:42Z")

</div>

I got it to work only when I named the off ID “of” rather than “off”. I don’t know why it works that way.

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [June 17, 2021, 6:30pm UTC](https://forum.code.org/t/unit-6-lesson-3-puzzle-8/34823/7 "2021-06-17T18:30:43Z")

</div>

I think as @AndreaRobNott said, you named a screen Off and the button Off … they were trying to share the same name … at least I think that’s what happened.

Glad it’s working.

Mike

---

<div class="post-metadata">

**Author:** ![akarttunen](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@akarttunen](https://forum.code.org/u/akarttunen)\
**Post date:** [June 17, 2021, 7:57pm UTC](https://forum.code.org/t/unit-6-lesson-3-puzzle-8/34823/8 "2021-06-17T19:57:25Z")

</div>

Thanks! I will try it.
