# Question

**URL:** <https://forum.makecode.com/t/question/4211>\
**Category:** Help\
**Created:** [November 1, 2020, 1:08am UTC](https://forum.makecode.com/t/question/4211 "2020-11-01T01:08:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![omnisImperium](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/omnisimperium/32/2728_2.png) [@omnisImperium](https://forum.makecode.com/u/omnisImperium)\
**Post date:** [November 1, 2020, 1:08am UTC](https://forum.makecode.com/t/question/4211/1 "2020-11-01T01:08:00Z")

</div>

I have a question. I am making a roguelike game in which the player can defeat enemies to gain rewards, like new weapons. So can anyone tell me how to make an inventory where the player can switch between weapons. thx

---

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [November 1, 2020, 1:41am UTC](https://forum.makecode.com/t/question/4211/2 "2020-11-01T01:41:32Z")

</div>

> **[Pixx Artist Pro](https://arcade.makecode.com/67830-89486-46510-45196)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

“inventory” example. It just scrolls between colors. (Press Play)

---

<div class="post-metadata">

**Author:** ![omnisImperium](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/omnisimperium/32/2728_2.png) [@omnisImperium](https://forum.makecode.com/u/omnisImperium)\
**Post date:** [November 1, 2020, 2:08am UTC](https://forum.makecode.com/t/question/4211/3 "2020-11-01T02:08:18Z")

</div>

This is really helpful thanks a ton.

---

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [November 1, 2020, 3:01am UTC](https://forum.makecode.com/t/question/4211/4 "2020-11-01T03:01:56Z")

</div>

Basically set a variable (in my game, it is color) to 0 then create the inventory drawing. Move a cursor by [color (in my game)] times [pixels in inventory unit] + [pixels from the side of the screen]. I am not that good at explaining, but I hope this helps.
