# Background Image

**URL:** <https://forum.code.org/t/background-image/32228>\
**Category:** Coding and Debugging Help\
**Created:** [February 11, 2020, 5:09pm UTC](https://forum.code.org/t/background-image/32228 "2020-02-11T17:09:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![victoria\_mariano](https://avatars.discourse-cdn.com/v4/letter/v/278dde/32.png) [@victoria\_mariano](https://forum.code.org/u/victoria_mariano)\
**Post date:** [February 11, 2020, 5:09pm UTC](https://forum.code.org/t/background-image/32228/1 "2020-02-11T17:09:14Z")

</div>

[Posts in the debugging category need to have the following pieces of information included in order to help other teachers or our moderator team best help you. Feel free to delete everything in brackets before posting your request for debugging help.]

**Link to the project or level:** [https://studio.code.org/projects/applab/uWUC\_Eom0\_UDbZ-\_07pUDEd1OaDMXVHvHYX8QjxBWUU](https://studio.code.org/projects/applab/uWUC_Eom0_UDbZ-_07pUDEd1OaDMXVHvHYX8QjxBWUU)  
**What I expect to happen:** lives variable should subtract 1 everytime background image is clicked. When it reaches zero the end game screen should appear.  
\*\*What actually happens:\*\*Each time the background image is clicked it goes directly to the end screen.  
**What I’ve tried:** [console.org](http://console.org) shows only 1 life subtracted even though if statement calls for 3 misses for the game to end. It is not a background in the screen but a separate image. We tried using the URL and uploading the image to assets. This student had the same problem with the 1st clicker program. It only worked with mouseover but not with click.

---

<div class="post-metadata">

**Author:** ![mmathews](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mmathews/32/4419_2.png) [@mmathews](https://forum.code.org/u/mmathews)\
**Post date:** [February 11, 2020, 5:16pm UTC](https://forum.code.org/t/background-image/32228/2 "2020-02-11T17:16:26Z")

</div>

You have two event handlers for the click on background image. Remove lines 8-10 and your program will work as expected.
