# Help with island game

**URL:** <https://forum.makecode.com/t/help-with-island-game/44321>\
**Category:** Help\
**Tags:** game\
**Created:** [June 2, 2026, 10:53pm UTC](https://forum.makecode.com/t/help-with-island-game/44321 "2026-06-02T22:53:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://forum.makecode.com/u/Mik)\
**Post date:** [June 2, 2026, 10:53pm UTC](https://forum.makecode.com/t/help-with-island-game/44321/1 "2026-06-02T22:53:16Z")

</div>

I want to make it so you can place down wood but it is not working!

> **[island](https://arcade.makecode.com/95256-95377-29086-37118)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![kirbob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kirbob/32/34880_2.png) [@kirbob](https://forum.makecode.com/u/kirbob)\
**Post date:** [June 3, 2026, 11:58pm UTC](https://forum.makecode.com/t/help-with-island-game/44321/2 "2026-06-03T23:58:06Z")

</div>

if facing left = true then on a button press, set sprite wood to sprite set wood position to Y = knight Y X = knight X - 30 (or whatever u pick. heres an example [https://arcade.makecode.com/S89953-86345-05501-26129](https://arcade.makecode.com/S89953-86345-05501-26129)

---

<div class="post-metadata">

**Author:** ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://forum.makecode.com/u/Mik)\
**Post date:** [June 3, 2026, 11:58pm UTC](https://forum.makecode.com/t/help-with-island-game/44321/3 "2026-06-03T23:58:41Z")

</div>

[https://makecode.com/\_EAi1kyXkm0hM](https://makecode.com/_EAi1kyXkm0hM)

---

<div class="post-metadata">

**Author:** ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://forum.makecode.com/u/Mik)\
**Post date:** [June 5, 2026, 2:08am UTC](https://forum.makecode.com/t/help-with-island-game/44321/4 "2026-06-05T02:08:39Z")

</div>

It works when it is in on start block. Nothing happens when I put the code into the if block in the inventory.

---

<div class="post-metadata">

**Author:** ![kirbob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kirbob/32/34880_2.png) [@kirbob](https://forum.makecode.com/u/kirbob)\
**Post date:** [June 5, 2026, 3:24pm UTC](https://forum.makecode.com/t/help-with-island-game/44321/5 "2026-06-05T15:24:33Z")

</div>

try doing on a button press if inventory = 1 (or whatever means it’s open) then close inv and then the code from before.
