Hello, I'm trying to make an inventory system by using the youtube tutorial: youtube.com/watch (I don't know if you understand portuguese), but it didn't show me how to add and delete items, and I wanted some help for it.
It would be some logic like when you click on an item to pick up, go with array events for each x,y - if value= nada, stop the loop and set curx,cury to item name / animation name. Will replace the first nada (empty slot) with the item.
Could you show me an screenshot (if you can) to me of this please? I didn't understood well.
Funny, last week I decided to learn about inventory and I also used Marcos' video, as I use Array I found it interesting, but the video is very limited, what resolved my doubts was studying the demonstration game about inventory.
If you want to see a sample video of how it turned out, I don't know if that's what you want: https://x.com/gingercat_games/status/1853420378372133195/video/1
Develop games in your browser. Powerful, performant & highly capable.
I was saying that I wanted a screenshot of the inventory code that lionz suggested me.