# Dialogue portraits

**URL:** <https://forum.makecode.com/t/dialogue-portraits/14091>\
**Category:** Arcade\
**Created:** [June 14, 2022, 5:04pm UTC](https://forum.makecode.com/t/dialogue-portraits/14091 "2022-06-14T17:04:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vistonalo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vistonalo/32/6368_2.png) [@Vistonalo](https://forum.makecode.com/u/Vistonalo)\
**Post date:** [June 14, 2022, 5:04pm UTC](https://forum.makecode.com/t/dialogue-portraits/14091/1 "2022-06-14T17:04:01Z")

</div>

Hi, I was wondering if there was a way to create dialogue portraits for characters, just like a certain RPG game…

Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [July 18, 2022, 5:07pm UTC](https://forum.makecode.com/t/dialogue-portraits/14091/2 "2022-07-18T17:07:16Z")

</div>

You could use the story extension (built-in) to display dialogues with character name labels above the dialogue itself, but if you want a picture of the character that is talking, you could draw a sprite and then render it above the text using the `set portrait z(depth) to <value>` where the value is a big number. Here i provided an example, and I named the sprite which is used as the portrait “portrait” but you can really rename it to anything.

> **P.S**
>
> - If you want to change what the character looks like and where it’s positioned on-screen, edit the image in the `set portrait to sprite <image> of kind ...`
> - and if you want to put the character behind the text bubble, remove the `set portrait z(depth) to 100` block from the code

Here’s the code:

> **[dialogue portraits](https://arcade.makecode.com/99190-73375-83947-58335)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Ask if you have any further questions or problems with your code, and cheers!
