# Unit 3 Lesson 9 and 10

**URL:** <https://forum.code.org/t/unit-3-lesson-9-and-10/34115>\
**Category:** Uncategorized\
**Tags:** csd-unit-3\
**Created:** [January 23, 2021, 2:19am UTC](https://forum.code.org/t/unit-3-lesson-9-and-10/34115 "2021-01-23T02:19:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrandall](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mrandall](https://forum.code.org/u/mrandall)\
**Post date:** [January 23, 2021, 2:19am UTC](https://forum.code.org/t/unit-3-lesson-9-and-10/34115/1 "2021-01-23T02:19:51Z")

</div>

Are you able to add text to a background image? I am not getting text to show. “stage” is one of the background scenes included in the animation library.

function draw() {  
var wall = createSprite(200, 200);  
wall.setAnimation(“stage”);  
textSize(20);  
text(“Animations Got Talent”, 30, 100);  
var note1 = createSprite(250, 150);  
note1.setAnimation(“halfNote”);  
note1.rotation = randomNumber(-5, 5);  
var character1 = createSprite(200, 300);  
character1.setAnimation(“girl”);  
character1.scale = 0.5;  
character1.rotation = randomNumber(-5, 5);  
character1.x = randomNumber(190, 210);  
…  
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:** [January 23, 2021, 2:37pm UTC](https://forum.code.org/t/unit-3-lesson-9-and-10/34115/2 "2021-01-23T14:37:55Z")

</div>

@mrandall,

Just looking at the code, it appears that the drawSprites() is the last command and since stage is a sprite, it will draw it with all the other sprites at the end and that will cover up your text. You would want to create the text after drawing the sprites and then it would show up.

Hope that helps!

Mike

---

<div class="post-metadata">

**Author:** ![mrandall](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mrandall](https://forum.code.org/u/mrandall)\
**Post date:** [January 24, 2021, 7:12pm UTC](https://forum.code.org/t/unit-3-lesson-9-and-10/34115/3 "2021-01-24T19:12:13Z")

</div>

Thank you for the prompt response. That solved my issue.

 ![A2C881E502AF434E85CF843D7249FFD6.png](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/7/7159a975d714a6caee787759490140daf4d4fda6.png)
