# Unit 3 Lesson 11 - Help please

**URL:** <https://forum.code.org/t/unit-3-lesson-11-help-please/37126>\
**Category:** CS Discoveries\
**Tags:** csd-unit-3\
**Created:** [October 26, 2022, 5:50pm UTC](https://forum.code.org/t/unit-3-lesson-11-help-please/37126 "2022-10-26T17:50:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kristielinkous](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/kristielinkous/32/7788_2.png) [@kristielinkous](https://forum.code.org/u/kristielinkous)\
**Post date:** [October 26, 2022, 5:50pm UTC](https://forum.code.org/t/unit-3-lesson-11-help-please/37126/1 "2022-10-26T17:50:20Z")

</div>

I’m a former ELA teacher who is teaching Computer Science for the first time, so I’m learning as I go. I’m on CSD Unit 3 Lesson 11. I can’t figure out why my text is not showing on top. Please advise. Here is my code.

var planet = createSprite(200, 200);  
planet.setAnimation(“planet”);

var alien\_1 = createSprite(90, 290);  
alien\_1.setAnimation(“alien\_1”);  
alien\_1.scale = 0.25;

var alien\_2 = createSprite(310, 290);  
alien\_2.setAnimation(“alien\_2”);  
alien\_2.scale = 0.25;

var alien\_3 = createSprite(200, 290);  
alien\_3.setAnimation(“alien\_3”);  
alien\_3.scale = 0.25;

var crown = createSprite(90, 220);  
crown.setAnimation(“crown”);  
crown.scale = 0.2;

var confetti = createSprite(200, 200);  
confetti.setAnimation(“confetti”);  
confetti.scale = 2;

drawSprites();

fill(“yellow”);  
textSize(30);  
text(“Miss Universe 2022”, 60, 80);

function draw() {  
confetti.y = randomNumber(200,220);  
crown.x = randomNumber (80, 100);

drawSprites();  
}

---

<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:** [October 26, 2022, 6:13pm UTC](https://forum.code.org/t/unit-3-lesson-11-help-please/37126/2 "2022-10-26T18:13:42Z")

</div>

@kristielinkous ,

If you could click on the share link and give us a link to the actual project, we can definitely help you out. What could be happening is that you might have a sprite covering the text, so when drawSprites is drawn, it covers the text. You could try putting the text inside the draw loop and have the text be created after drawing the Sprites and that may be the solution.

Mike

---

<div class="post-metadata">

**Author:** ![kristielinkous](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/kristielinkous/32/7788_2.png) [@kristielinkous](https://forum.code.org/u/kristielinkous)\
**Post date:** [October 26, 2022, 6:15pm UTC](https://forum.code.org/t/unit-3-lesson-11-help-please/37126/3 "2022-10-26T18:15:36Z")

</div>

> **[Check out what I made](https://studio.code.org/projects/gamelab/MoLkz5mMMaoPp5zYy-BlJ9Ehk5Mz9kmX9Hs0jKCoWUo)**
>
> 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:** [October 26, 2022, 6:44pm UTC](https://forum.code.org/t/unit-3-lesson-11-help-please/37126/4 "2022-10-26T18:44:34Z")

</div>

Thanks! Because the draw loop is a “forever” loop, it continues to draw your sprites over and over again (covering up the text). Your text is only drawn once because it isn’t inside the draw loop.

If you move the text blocks inside the draw loop (after the drawSprites) block, it should work!

Good luck!

Mike

---

<div class="post-metadata">

**Author:** ![kristielinkous](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/kristielinkous/32/7788_2.png) [@kristielinkous](https://forum.code.org/u/kristielinkous)\
**Post date:** [October 26, 2022, 6:52pm UTC](https://forum.code.org/t/unit-3-lesson-11-help-please/37126/5 "2022-10-26T18:52:12Z")

</div>

Thank you so much. That worked!
