# Shapes Placement

**URL:** <https://forum.code.org/t/shapes-placement/37798>\
**Category:** Unit and Lesson Discussion\
**Tags:** csd-unit-3, csd-unit-3-lesson-17\
**Created:** [March 23, 2023, 2:09pm UTC](https://forum.code.org/t/shapes-placement/37798 "2023-03-23T14:09:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcmastersha](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mcmastersha/32/5133_2.png) [@mcmastersha](https://forum.code.org/u/mcmastersha)\
**Post date:** [March 23, 2023, 2:09pm UTC](https://forum.code.org/t/shapes-placement/37798/1 "2023-03-23T14:09:01Z")

</div>

I’ve had several students ask how to put a sprite in front of a shape. I know it’s a placement issue, but the combinations I am trying with them aren’t working out.

In the following example, the student wants the runner to cross the finish line (a drawing), then change the set animation. The student wants the sprite to go in front of the finish line, not behind.

Thoughts?  
Thanks!

[Shapes behind sprites](https://studio.code.org/projects/gamelab/oMjPzSe4D-1NCpbWmQ2DnK9hLi-UnDLhmhzfoj7TvnM)

---

<div class="post-metadata">

**Author:** ![tim.mackey](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/tim.mackey/32/4458_2.png) [@tim.mackey](https://forum.code.org/u/tim.mackey)\
**Post date:** [March 23, 2023, 3:01pm UTC](https://forum.code.org/t/shapes-placement/37798/2 "2023-03-23T15:01:37Z")

</div>

Make sure you shape (finish line) is before drawSprite.

---

<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:** [March 24, 2023, 4:42pm UTC](https://forum.code.org/t/shapes-placement/37798/3 "2023-03-24T16:42:12Z")

</div>

@mcmastersha,

This must have changed since you posted yesterday, because I can’t see a finish line, but depending on what you are doing, you can draw a single sprite by using the text command drawsprite(); Inside the parenthesis, you use the label of the single sprite you want to draw.

That may help.

Mike

---

<div class="post-metadata">

**Author:** ![mcmastersha](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mcmastersha/32/5133_2.png) [@mcmastersha](https://forum.code.org/u/mcmastersha)\
**Post date:** [March 24, 2023, 5:01pm UTC](https://forum.code.org/t/shapes-placement/37798/4 "2023-03-24T17:01:23Z")

</div>

Hi Mike!

Thanks for reminding me. The error (finish line) is now part of the loop.

---

<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:** [March 24, 2023, 5:31pm UTC](https://forum.code.org/t/shapes-placement/37798/5 "2023-03-24T17:31:57Z")

</div>

@mcmastersha,

I’m thinking the easiest way to solve this one would be to make the finish line a sprite. Then, if it is declared after the track, but before the other sprites, it would sandwich in between.

The other solution would be to draw each sprite individually, but that would be time consuming.

Mike
