How to Make a Shop System at BGE

Hello, I would like to know how does a store system (buy items) for example, the character gets 200 coins in the stage and then has a store with the items and he buys an item that is below 200 or the same price and the Iten quw was bought goes to his inventory for him to equip, how can i do? Thank you!

A shop is basically an inventory.

So you need two inventories.

  • One inventory of the player character
  • One inventory of the shop/dealer

You need a sort of exchange, that allows to trade items. E.g. place items of the shops inventory to the exchange and move items of the players inventory to the exchange as well. When both agree, the items will be moved from exchange to the other inventory. (Be aware a money bag is an inventory as well).

You can indeed implement the exchange in several ways (e.g. by marking items in the inventory). How you want to support the player is your choice.

Due to the dynamic behavior o fan inventory you will need Python to implement it.

Sorry when this is still to high-level. For more details you need to present a more detailed concept of the shop (Who does when and how changes it the environment).