# Why does this happens?

**URL:** <https://forum.makecode.com/t/why-does-this-happens/7691>\
**Category:** Help\
**Created:** [April 28, 2021, 11:34pm UTC](https://forum.makecode.com/t/why-does-this-happens/7691 "2021-04-28T23:34:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaserFoxPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/laserfoxpro/32/4105_2.png) [@LaserFoxPro](https://forum.makecode.com/u/LaserFoxPro)\
**Post date:** [April 28, 2021, 11:34pm UTC](https://forum.makecode.com/t/why-does-this-happens/7691/1 "2021-04-28T23:34:51Z")

</div>

so i was working on this project [https://makecode.com/\_6E2AwjK4UXKP](https://makecode.com/_6E2AwjK4UXKP) and i couldt find why when i was looking at the sides it goes down plz help

---

<div class="post-metadata">

**Author:** ![Delta](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/delta/32/4010_2.png) [@Delta](https://forum.makecode.com/u/Delta)\
**Post date:** [April 30, 2021, 3:58pm UTC](https://forum.makecode.com/t/why-does-this-happens/7691/2 "2021-04-30T15:58:54Z")

</div>

My suggestion would be to use the set variable with text then you can say that when you press left set variable to “left” etc. Then in the if statements you write if variable equals “left”.

---

<div class="post-metadata">

**Author:** ![LaserFoxPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/laserfoxpro/32/4105_2.png) [@LaserFoxPro](https://forum.makecode.com/u/LaserFoxPro)\
**Post date:** [April 30, 2021, 8:51pm UTC](https://forum.makecode.com/t/why-does-this-happens/7691/3 "2021-04-30T20:51:54Z")

</div>

how?

here is grass ![35194553-green-grass-floor-texture-background](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/ecefac13a1799e83d90fd7da835410921e7a645c.jpeg)

---

<div class="post-metadata">

**Author:** ![Delta](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/delta/32/4010_2.png) [@Delta](https://forum.makecode.com/u/Delta)\
**Post date:** [May 1, 2021, 6:35am UTC](https://forum.makecode.com/t/why-does-this-happens/7691/4 "2021-05-01T06:35:29Z")

</div>

Something like this ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/6ab2bd7cfd6f4de1334ed54f4fc4b2601b6c8226.png)

---

<div class="post-metadata">

**Author:** ![LaserFoxPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/laserfoxpro/32/4105_2.png) [@LaserFoxPro](https://forum.makecode.com/u/LaserFoxPro)\
**Post date:** [May 3, 2021, 8:27pm UTC](https://forum.makecode.com/t/why-does-this-happens/7691/5 "2021-05-03T20:27:55Z")

</div>

oh ok that is noice, can you put the link?

cuz i am to lazy to make that lol

---

<div class="post-metadata">

**Author:** ![Delta](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/delta/32/4010_2.png) [@Delta](https://forum.makecode.com/u/Delta)\
**Post date:** [May 4, 2021, 12:12am UTC](https://forum.makecode.com/t/why-does-this-happens/7691/6 "2021-05-04T00:12:02Z")

</div>

Sure thing:[https://makecode.com/\_dTTK7WK9fdp6](https://makecode.com/_dTTK7WK9fdp6)

---

<div class="post-metadata">

**Author:** ![LaserFoxPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/laserfoxpro/32/4105_2.png) [@LaserFoxPro](https://forum.makecode.com/u/LaserFoxPro)\
**Post date:** [May 4, 2021, 4:23pm UTC](https://forum.makecode.com/t/why-does-this-happens/7691/7 "2021-05-04T16:23:07Z")

</div>

thanks @Delta really cool 👍🏼
