# CSD Mouse Input Lesson16

**URL:** <https://forum.code.org/t/csd-mouse-input-lesson16/34082>\
**Category:** Coding and Debugging Help\
**Tags:** csd-unit-3\
**Created:** [January 18, 2021, 10:47am UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082 "2021-01-18T10:47:29Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratimachatty](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@pratimachatty](https://forum.code.org/u/pratimachatty)\
**Post date:** [January 18, 2021, 10:47am UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082/1 "2021-01-18T10:47:29Z")

</div>

[https://studio.code.org/s/csd3-2020/stage/16/puzzle/10/sublevel/2?section\_id=3042856](https://studio.code.org/s/csd3-2020/stage/16/puzzle/10/sublevel/2?section_id=3042856)

Hi,  
In above program uploaded link multiple bees are creating with mouse movement. i want to rectify this i am not able to figure out how to do it.If any one done this pls post the program.

---

<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:** [January 18, 2021, 7:31pm UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082/2 "2021-01-18T19:31:19Z")

</div>

@pratimachatty

Sorry you are having problems with this level… if you want to click on “share” and send us the link to your project, we may be able to give you a pointer and help you get on the right path…

Mr. Wood

---

<div class="post-metadata">

**Author:** ![pratimachatty](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@pratimachatty](https://forum.code.org/u/pratimachatty)\
**Post date:** [January 20, 2021, 6:22am UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082/4 "2021-01-20T06:22:49Z")

</div>

[[CSD Mouse Input Lesson16](https://forum.code.org/t/csd-mouse-input-lesson16/34082)]

---

<div class="post-metadata">

**Author:** ![pratimachatty](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@pratimachatty](https://forum.code.org/u/pratimachatty)\
**Post date:** [January 20, 2021, 6:30am UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082/5 "2021-01-20T06:30:20Z")

</div>

[https://studio.code.org/s/csd3-2020/stage/16/puzzle/10/sublevel/2?section\_id=3042856](https://studio.code.org/s/csd3-2020/stage/16/puzzle/10/sublevel/2?section_id=3042856)

---

<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:** [January 20, 2021, 2:38pm UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082/6 "2021-01-20T14:38:24Z")

</div>

@pratimachatty, That’s the link to the lesson itself. For us to be able to see your code, you need to look for the “share” button in the upper left hand corner of the screen and send us that link.

Thanks!

Mike

---

<div class="post-metadata">

**Author:** ![pratimachatty](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@pratimachatty](https://forum.code.org/u/pratimachatty)\
**Post date:** [January 20, 2021, 4:07pm UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082/7 "2021-01-20T16:07:56Z")

</div>

> **[Check out what I made](https://studio.code.org/projects/gamelab/HDNBBv89cpO6EnmTdK4J5fIrPuCdYqdTouvHZjJOGj8)**
>
> I wrote the code myself with Code.org

---

<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:** [January 20, 2021, 5:47pm UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082/8 "2021-01-20T17:47:41Z")

</div>

So, the draw loop will cause your code to execute repeatedly, but it doesn’t erase any sprites that are drawn, so the bee is drawn over and over again and you see all of the drawings when you move the mouse. In order for there to only be one bee, you need to cover up the previous instance of the bee each time through the loop. Can you think of a block that would do that?

Mike

---

<div class="post-metadata">

**Author:** ![pratimachatty](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@pratimachatty](https://forum.code.org/u/pratimachatty)\
**Post date:** [January 21, 2021, 5:26pm UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082/9 "2021-01-21T17:26:08Z")

</div>

Hello Mike, thanks for your replying to my queries I have used even sprite.visible code but I am unable to do it if you have the solution can u post it.

Thanks  
Pratima

---

<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:** [January 21, 2021, 5:56pm UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082/10 "2021-01-21T17:56:45Z")

</div>

We don’t usually post solutions because students may have it as an assignment and use the forum to find answers. If you are a teacher, you should be able to see a solution in your teacher account. If not, I noticed you posted a question yesterday on a related issue. The solution is the same … make sure and put a background block into the draw loop so your background covers up the last bee drawn before drawing a new one.

Hope this helps!

Mike

---

<div class="post-metadata">

**Author:** ![pratimachatty](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@pratimachatty](https://forum.code.org/u/pratimachatty)\
**Post date:** [January 22, 2021, 6:13am UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082/11 "2021-01-22T06:13:32Z")

</div>

Thanks Mike I am teacher I am learning & teaching coding . I have completed CSD course this is the issue left pending, no problem I will try my best.

Thanks so much.  
Pratima.

---

<div class="post-metadata">

**Author:** ![pratimachatty](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@pratimachatty](https://forum.code.org/u/pratimachatty)\
**Post date:** [January 22, 2021, 5:31pm UTC](https://forum.code.org/t/csd-mouse-input-lesson16/34082/12 "2021-01-22T17:31:43Z")

</div>

Thanks .it is working now problem solved
