# I have a glitch

**URL:** <https://forum.makecode.com/t/i-have-a-glitch/6247>\
**Category:** Help\
**Created:** [February 18, 2021, 4:21pm UTC](https://forum.makecode.com/t/i-have-a-glitch/6247 "2021-02-18T16:21:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 18, 2021, 4:21pm UTC](https://forum.makecode.com/t/i-have-a-glitch/6247/1 "2021-02-18T16:21:32Z")

</div>

> **[Double Trouble](https://arcade.makecode.com/05591-70582-60298-43125)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

It is not that heavy, but the simulator died when I recorded. Also, in level 3, for some reason it will not move the sprites correctly. When they fall off the tilemap they will not go back correctly.

---

<div class="post-metadata">

**Author:** ![NxNMatrixGL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/nxnmatrixgl/32/2553_2.png) [@NxNMatrixGL](https://forum.makecode.com/u/NxNMatrixGL)\
**Post date:** [February 21, 2021, 6:18am UTC](https://forum.makecode.com/t/i-have-a-glitch/6247/2 "2021-02-21T06:18:12Z")

</div>

I like this style of game. Very fun. Great job!

Regarding the glitch.One thing I notice is the reset positions of the sprites don’t work when both fall off the screen. When only one falls, the reset works as expected. Perhaps use a bool to execute the overlap only once, so it doesn’t fire the event when the second player falls off the screen, and then set the bool appropriately after the reset.

---

<div class="post-metadata">

**Author:** ![kwx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kwx/32/1545_2.png) [@kwx](https://forum.makecode.com/u/kwx)\
**Post date:** [February 22, 2021, 7:11am UTC](https://forum.makecode.com/t/i-have-a-glitch/6247/3 "2021-02-22T07:11:25Z")

</div>

![Screenshot_20210220-223417](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/c18ce81b6c4ca2480ea29054360fdeabafb80a90.png)

The game is great! I think I did run into a bug on this level, it seems the top character got pushed through a platform when the camera scrolled to keep both in view. I think the platform was off screen while the sprite was pushed down to stay inside the screen.

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 22, 2021, 4:25pm UTC](https://forum.makecode.com/t/i-have-a-glitch/6247/4 "2021-02-22T16:25:36Z")

</div>

Oops, forgot to give the fix. This is a little abstract, since soft-locking disables wall and tile collisions. So I will need to make an array that stays for only the level keeping the tilemap positions of every ice floor tiles. Apart from that, it is really hard to soft lock because of the centered camera.
