inventory

Non-platform specific questions.

inventory

Postby BogdansB » Tue May 01, 2012 11:52 am

hi,

I was searching for making inventorys and i found things which were very hard to understand for me.
I just wanted to make an inventory that is very simple. i want in my left side of view 4 squares where oyu can put a wapon or anything like that by walking on it when it lies on the ground or by pressing "enter" in the near of it.
how can i make that? and i want that the weapen changes the state of your damage when you put it in the bottom (there are squares too and they show the items you have put on you).
do i make it with an array? how can i make the item throw on the ground when i click on it?
BogdansB
 
Posts: 94
Joined: Tue Oct 25, 2011 2:30 pm
Score: 0 Give a positive score

Re: inventory

Postby skydereign » Tue May 01, 2012 1:58 pm

Use an integer array to store which items you have. When you collide with a weapon, it tries to put it into the array, and move the item to your display region. When it is clicked, you pop it back on screen.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron