# How do i make my items in arcade not spawn in my walls when the spawn coordinates are randomized

**URL:** <https://forum.makecode.com/t/how-do-i-make-my-items-in-arcade-not-spawn-in-my-walls-when-the-spawn-coordinates-are-randomized/12877>\
**Category:** Help\
**Created:** [March 28, 2022, 3:04pm UTC](https://forum.makecode.com/t/how-do-i-make-my-items-in-arcade-not-spawn-in-my-walls-when-the-spawn-coordinates-are-randomized/12877 "2022-03-28T15:04:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brock](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@Brock](https://forum.makecode.com/u/Brock)\
**Post date:** [March 28, 2022, 3:04pm UTC](https://forum.makecode.com/t/how-do-i-make-my-items-in-arcade-not-spawn-in-my-walls-when-the-spawn-coordinates-are-randomized/12877/1 "2022-03-28T15:04:54Z")

</div>

I am having a problem with my game where coins and other items are spawning inside the walls out of the reach of the player. The spawn coordinates are randomized so they spawn anywhere and unfortunately that mean inside the walls aswell can somebody please help me I’m really stuck.

---

<div class="post-metadata">

**Author:** ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)\
**Post date:** [March 30, 2022, 6:10pm UTC](https://forum.makecode.com/t/how-do-i-make-my-items-in-arcade-not-spawn-in-my-walls-when-the-spawn-coordinates-are-randomized/12877/2 "2022-03-30T18:10:02Z")

</div>

Make it when its on a wall tile either to not spawn or to move it 16 to a side  
Basically you could also just make an array of where the walls are and test if the coordinates are on one of thrm
