# Why is the text sprite extention not working properly?

**URL:** https://forum.makecode.com/t/why-is-the-text-sprite-extention-not-working-properly/9554
**Category:** Arcade
**Created:** [August 6, 2021, 5:14pm UTC](https://forum.makecode.com/t/why-is-the-text-sprite-extention-not-working-properly/9554 "2021-08-06T17:14:40Z")
**Posts on this page:** 3
**Page:** 1

<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: [August 6, 2021, 5:14pm UTC](https://forum.makecode.com/t/why-is-the-text-sprite-extention-not-working-properly/9554/1 "2021-08-06T17:14:40Z")

</div>

So, I’m using the text sprite extention by @darzu, and I can’t use sprite and text functions in the same time. When I try to retrieve the width and position the text sprite, it starts refusing to change the text on the sprite, returning the Property ‘setText’ does not exist on type ‘Sprite’ Please let me know if there is any way to avoid this. Thanks

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [August 6, 2021, 5:20pm UTC](https://forum.makecode.com/t/why-is-the-text-sprite-extention-not-working-properly/9554/2 "2021-08-06T17:20:35Z")

</div>

This is actually a bug that just got fixed on our side, so next to an update to arcade is released it will fix itself (here’s the fix for reference: [https://github.com/microsoft/pxt/pull/8332](https://github.com/microsoft/pxt/pull/8332)).

A way to work around it for now / until that fix is released is to just put a an extra text sprite block as the first step in any event / function you use the textSprite – that is, if you have code like this and it is failing:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d78c5a754ee45dff18b63e3522af62ba410be9a4.png)

you can add a text sprite block first (max font height is probably easiest) to help the compiler fix itself:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/dffa3182b0e966ea4236727bb351fcc9de2e801a.png)

again, this will be unnecessary after the next release – the issue is that it is trying to find the type for `textSprite` and it sees that it can be used as a sprite and doesn’t narrow it down any further (as text sprites are special kinds of sprites with their own properties).

---

<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: [August 6, 2021, 5:23pm UTC](https://forum.makecode.com/t/why-is-the-text-sprite-extention-not-working-properly/9554/3 "2021-08-06T17:23:05Z")

</div>

Thanks! When will the next release come out?
