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

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.

3 Likes

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.

1 Like

Also here is the code:

Screenshot 2024-06-18 10.52.08 AM

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

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” might help you!

I’ve also made a quick recreation of what I think you’re trying to achieve. Hope this help! :grinning:

1 Like

Thank you, this really helped :smiley:

1 Like

Glad it did! Have fun coding :partying_face: