# How would you go about taking control away from the player for a bit?

**URL:** <https://forum.makecode.com/t/how-would-you-go-about-taking-control-away-from-the-player-for-a-bit/46689>\
**Category:** Help\
**Created:** [October 25, 2026, 8:13pm UTC](https://forum.makecode.com/t/how-would-you-go-about-taking-control-away-from-the-player-for-a-bit/46689 "2026-10-25T20:13:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/toby/32/31659_2.png) [@Toby](https://forum.makecode.com/u/Toby)\
**Post date:** [October 25, 2026, 8:13pm UTC](https://forum.makecode.com/t/how-would-you-go-about-taking-control-away-from-the-player-for-a-bit/46689/1 "2026-10-25T20:13:54Z")

</div>

I know this is likely a dumb question but theres a bug in my game where if you press any button during a level transition immediately after the level transition it sends you to a different level!

> **[soda game](https://arcade.makecode.com/S38913-65128-20832-48539)**
>
> psst psst

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [October 25, 2026, 10:46pm UTC](https://forum.makecode.com/t/how-would-you-go-about-taking-control-away-from-the-player-for-a-bit/46689/2 "2026-10-25T22:46:43Z")

</div>

Probably just make a simple “levelTransitioning” variable that you set to false normally and true only when the level is transitioning, then just have an “If \< not ( levelTransitioning ) \>” around all the code in the button press functions and stuff.

---

<div class="post-metadata">

**Author:** ![Toby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/toby/32/31659_2.png) [@Toby](https://forum.makecode.com/u/Toby)\
**Post date:** [October 26, 2026, 3:41am UTC](https://forum.makecode.com/t/how-would-you-go-about-taking-control-away-from-the-player-for-a-bit/46689/3 "2026-10-26T03:41:56Z")

</div>

alright thanks again! i couldve sworn there was a block for that LOL

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [October 26, 2026, 5:06pm UTC](https://forum.makecode.com/t/how-would-you-go-about-taking-control-away-from-the-player-for-a-bit/46689/4 "2026-10-26T17:06:00Z")

</div>

If you were using the “control (mySprite) with buttons” block then you could use that block with x and y speed set to 0 to stop the player from moving, but that doesn’t work for your code. Maybe that’s what you were thinking of?

---

<div class="post-metadata">

**Author:** ![Toby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/toby/32/31659_2.png) [@Toby](https://forum.makecode.com/u/Toby)\
**Post date:** [October 28, 2026, 2:44am UTC](https://forum.makecode.com/t/how-would-you-go-about-taking-control-away-from-the-player-for-a-bit/46689/5 "2026-10-28T02:44:04Z")

</div>

thats not quite right i remeber there being a block in the controller tab
