# Problem with TextSprite (not staying on screen)

**URL:** https://forum.makecode.com/t/problem-with-textsprite-not-staying-on-screen/10230
**Category:** Help
**Created:** [September 28, 2021, 8:55pm UTC](https://forum.makecode.com/t/problem-with-textsprite-not-staying-on-screen/10230 "2021-09-28T20:55:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TheJaky](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thejaky/32/5711_2.png) [@TheJaky](https://forum.makecode.com/u/TheJaky)
#### Post date: [September 28, 2021, 8:55pm UTC](https://forum.makecode.com/t/problem-with-textsprite-not-staying-on-screen/10230/1 "2021-09-28T20:55:35Z")

</div>

I want the text sprite I made to stay on screen in my game, like the life counter. The text sprite is supposed to work like a lives counter (like super mario brothers for example) I tried stay on screen block, and now it just slides about back and forth. It doesn’t appear at all with the relative to camera block with the stay on screen. I removed the relative to camera because of this.

Here’s the game: [https://makecode.com/\_cdTXMjL9gfdh](https://makecode.com/_cdTXMjL9gfdh)

---

<div class="post-metadata">

### Author: ![SoftTalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/softtalker/32/10776_2.png) [@SoftTalker](https://forum.makecode.com/u/SoftTalker)
#### Post date: [September 29, 2021, 3:20pm UTC](https://forum.makecode.com/t/problem-with-textsprite-not-staying-on-screen/10230/2 "2021-09-29T15:20:25Z")

</div>

wow this game amazing i tried to win but cant

---

<div class="post-metadata">

### Author: ![TheJaky](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thejaky/32/5711_2.png) [@TheJaky](https://forum.makecode.com/u/TheJaky)
#### Post date: [September 29, 2021, 5:58pm UTC](https://forum.makecode.com/t/problem-with-textsprite-not-staying-on-screen/10230/3 "2021-09-29T17:58:13Z")

</div>

it’s not done yet, you can’t win.

But thank you!

---

<div class="post-metadata">

### Author: ![liam3DP](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@liam3DP](https://forum.makecode.com/u/liam3DP)
#### Post date: [May 13, 2025, 9:56pm UTC](https://forum.makecode.com/t/problem-with-textsprite-not-staying-on-screen/10230/4 "2025-05-13T21:56:31Z")

</div>

it’s amazing. how are you so good?
