I need to create an inventory hotbar, that when you pick up something it is transfered to the empty/available place in the inventory hotbar.
You need an artistic box set with an array of coordinates to define where each box is, then when you drag and drop a box-sized sprite anywhere within the box's coordinates you can pin that object to the box.
Develop games in your browser. Powerful, performant & highly capable.
I am sorry but can you explain more or give me a tutorial or video link that could explain?
Because I never used arrays before, also what if the box that I dragged the object in is already full with another object? Please explain more.
Here is the tutorial i used to understand how to make an inventory system : https://www.scirra.com/tutorials/583/ea ... g-an-array
Hope it helps you !
Thx Rasine, but I already checked it out, I will check it again and try to understand it more.
try this link
https://www.dropbox.com/s/o6dizr3krvnpc ... .capx?dl=0
fathybasha If you are misunderstanding my tutorial at all, let me know. That was written a while ago and its not very consistent with itself lol. I might go back to it and make it look nicer/more readable.
Alydus thx for the links, ill try to learn from them.
lordshiva your link isnt working.
Encryptedcow i didn't ever use arrays so.....i don't think the problem is from your tutorial i think i should learn to use arrays first. ill probably copy the events
https://www.dropbox.com/s/mrcvkkamvge56 ... .capx?dl=0
OK I'll check it