RPG inventory - Tutorial? Help? Where to look?
KIIVIIN
Member Posts: 159
Hello,
Im trying to figure out how to make an inventory for my RPG game.
At the moment I have 5 squares on scene and a backpack.
I want it to be like this, when you collide with actor (items) it adds it to the backpack.
From the backpack you should be able to chose if you want to have it on the fast menu on scene etc.
Ive been searching forums, youtube, google etc.. But all I find is people done with their work or people charging money for templates. All I want is an tutorial of what and how it works. How I can learn this and make my own inventory.
Were do I start? What tutorials should I follow to make my own inventory? I dont want you to make me one, I want to make my own but I want to learn how to make it.
regards.
Comments
I made some custom tutorial videos explaining how to set up an inventory system for a client a while back. Send me a private message and I can give you more details.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Make a table(inventory), this will hold the items.
Make an actor, "Inventory spot".
Assign the inventory spot a self attribute, self.spot#
Give each space an spot number(1 to number of spaces in table)
Make a game attribute, game.freespotavailable
Put a rule in actor, "If game.freespotavailble > self.spot# and tableCellValue(inventory, self.spot#,1) is empty. Then change game.freespotavailable to self.spot#
When collide with item, change table cell value(inventory, game.freespotavailable, 1) to whatever the item is.