# How do I make a sprite stay on a specific place on the screen

**URL:** <https://forum.makecode.com/t/how-do-i-make-a-sprite-stay-on-a-specific-place-on-the-screen/29327>\
**Category:** Help\
**Tags:** game, extension\
**Created:** [June 18, 2024, 4:33pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-stay-on-a-specific-place-on-the-screen/29327 "2024-06-18T16:33:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kitty3119](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kitty3119/32/15974_2.png) [@Kitty3119](https://forum.makecode.com/u/Kitty3119)\
**Post date:** [June 18, 2024, 4:33pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-stay-on-a-specific-place-on-the-screen/29327/1 "2024-06-18T16:33:10Z")

</div>

I am making a game but I have a problem. I need a sprite to make a sprite stay on one spot on a screen as a button but when I used the “Say on screen” command it only well… stayed on screen. I want it to stay on screen and stay in one spot on the screen. Does somebody know how to do it and if so can you help, please? Thanks.

---

<div class="post-metadata">

**Author:** ![ChrispyBac0n](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@ChrispyBac0n](https://forum.makecode.com/u/ChrispyBac0n)\
**Post date:** [June 18, 2024, 6:26pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-stay-on-a-specific-place-on-the-screen/29327/2 "2024-06-18T18:26:10Z")

</div>

So I may have a solution to your problem however it may not what you want, the link is a example of a sprite in a enclosed area where it can’t escape. It is with the use of a “Title Map” where it’s things that overlap the background. You can choose to remove the bushes to create a invisible barrier.

> **[Project Test](https://arcade.makecode.com/S25188-08092-15737-69752)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![ChrispyBac0n](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@ChrispyBac0n](https://forum.makecode.com/u/ChrispyBac0n)\
**Post date:** [June 18, 2024, 6:26pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-stay-on-a-specific-place-on-the-screen/29327/3 "2024-06-18T18:26:15Z")

</div>

Also here is the code:

![Screenshot 2024-06-18 10.52.08 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/54d1ca1414e2d70a93a7449c5d17c477f3788b2e.png)

---

<div class="post-metadata">

**Author:** ![anon30657772](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anon30657772](https://forum.makecode.com/u/anon30657772)\
**Post date:** [June 19, 2024, 9:26pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-stay-on-a-specific-place-on-the-screen/29327/4 "2024-06-19T21:26:30Z")

</div>

Sadly I don’t think that’s what they meant! 😞

I believe they want to display a sprite that represents a button in a specific place of the screen and make it always stay there while the camera follows the player.

If that’s the case @Kitty3119, the block “_**[set sprite relative to camera](https://arcade.makecode.com/reference/sprites/sprite/set-flag#relative-to-camera)**_” might help you!

I’ve also made _[a quick recreation](https://arcade.makecode.com/S27776-00135-57124-04815)_ of what I think you’re trying to achieve. Hope this help! 😀

---

<div class="post-metadata">

**Author:** ![Kitty3119](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kitty3119/32/15974_2.png) [@Kitty3119](https://forum.makecode.com/u/Kitty3119)\
**Post date:** [June 20, 2024, 7:35pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-stay-on-a-specific-place-on-the-screen/29327/5 "2024-06-20T19:35:22Z")

</div>

Thank you, this really helped 😃

---

<div class="post-metadata">

**Author:** ![anon30657772](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anon30657772](https://forum.makecode.com/u/anon30657772)\
**Post date:** [June 21, 2024, 12:36am UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-stay-on-a-specific-place-on-the-screen/29327/6 "2024-06-21T00:36:25Z")

</div>

Glad it did! Have fun coding 🥳

---

<div class="post-metadata">

**Author:** ![Two\_Time](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@Two\_Time](https://forum.makecode.com/u/Two_Time)\
**Post date:** [March 3, 2026, 7:47pm UTC](https://forum.makecode.com/t/how-do-i-make-a-sprite-stay-on-a-specific-place-on-the-screen/29327/7 "2026-03-03T19:47:36Z")

</div>

Add some animations, and try to make a jumping mechanic

Your welcome
