# Can't turn off stay on screen for javascript project

**URL:** <https://forum.makecode.com/t/cant-turn-off-stay-on-screen-for-javascript-project/21852>\
**Category:** Arcade\
**Created:** [August 14, 2023, 4:12pm UTC](https://forum.makecode.com/t/cant-turn-off-stay-on-screen-for-javascript-project/21852 "2023-08-14T16:12:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![p3nguinc4g3](https://avatars.discourse-cdn.com/v4/letter/p/ee59a6/32.png) [@p3nguinc4g3](https://forum.makecode.com/u/p3nguinc4g3)\
**Post date:** [August 14, 2023, 4:12pm UTC](https://forum.makecode.com/t/cant-turn-off-stay-on-screen-for-javascript-project/21852/1 "2023-08-14T16:12:17Z")

</div>

I’m running a javascript project through VS Code and I’m finding that I can’t turn off sprites being forced to stay on screen when I’m using a tilemap. If I set the SpriteFlag.StayInScreen to false, I can’t move a sprite out of the boundaries. I was eventually able to work around this by setting SpriteFlag.Ghost to true but this seems like it might be a bug. Has anyone else run into this problem before?
