# Student Issue-U3L22

**URL:** <https://forum.code.org/t/student-issue-u3l22/32246>\
**Category:** Unit and Lesson Discussion\
**Tags:** csd-unit-3\
**Created:** [February 12, 2020, 7:00pm UTC](https://forum.code.org/t/student-issue-u3l22/32246 "2020-02-12T19:00:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![keisa.carrhudson](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@keisa.carrhudson](https://forum.code.org/u/keisa.carrhudson)\
**Post date:** [February 12, 2020, 7:00pm UTC](https://forum.code.org/t/student-issue-u3l22/32246/1 "2020-02-12T19:00:40Z")

</div>

I have a student having trouble getting his Score and Lives to show up on top of a set animation. Please advise, link below.

> **[Check out what I made](https://studio.code.org/projects/gamelab/X0hFf430R-fPiLFjU-17zArlOHQnVtmVO-epFr5N6qc)**
>
> I wrote the code myself with Code.org

---

<div class="post-metadata">

**Author:** ![kookooloopdaking](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/kookooloopdaking/32/5224_2.png) [@kookooloopdaking](https://forum.code.org/u/kookooloopdaking)\
**Post date:** [February 13, 2020, 12:31am UTC](https://forum.code.org/t/student-issue-u3l22/32246/2 "2020-02-13T00:31:58Z")

</div>

The problem is your student is calling `drawSprites()` after drawing the text. if he moves `drawSprites()` to before `showLives()` and `showScore()`

```
function draw() {
  // draw background
  background1();
  background2();
  background3();
  // update sprites
  changeBackground();
  controlPlayer();
  playerFall();
  drawSprites(); //drawSprites() called before text is drawn
  showLives();
  showScore();
  loopItems();
}
```

---

<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:** [February 13, 2020, 12:55pm UTC](https://forum.code.org/t/student-issue-u3l22/32246/3 "2020-02-13T12:55:14Z")

</div>

Looks like @kookooloopdaking came up with the same thing I would have. I like to encourage students to always remember what needs to be drawn first and what needs to be drawn last. In this case, the score needs to be the top element, so it should be drawn last, so I would invite my student to see if they can figure out what is hiding the score and how they might be able to solve the problem (rather than just give them the answer).

Mike

---

<div class="post-metadata">

**Author:** ![keisa.carrhudson](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@keisa.carrhudson](https://forum.code.org/u/keisa.carrhudson)\
**Post date:** [February 13, 2020, 5:41pm UTC](https://forum.code.org/t/student-issue-u3l22/32246/4 "2020-02-13T17:41:12Z")

</div>

Thank you all so much!
