Jump to content




[Question] Making an inventory for my adventure game


  • You cannot reply to this topic
3 replies to this topic

#1 elfin8er

  • Members
  • 133 posts

Posted 30 August 2012 - 04:19 PM

I'm working on trying to make my first adventure game in CC. So far I have a simple player creation system, with three classes, but now I want to make an inventory system. I want players to be able to see the items in their inventory, equip items, through items out, pick items up, ect. What would be the best way to go about this?

If anyone would like to see the code I have to far, let me know. I'd be more then happy to post it, and get any tips I could.

#2 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 30 August 2012 - 05:47 PM

Perhaps you could create a key to open up the inventory menu, where it would list all of the items. The selected item would have brackets around it.
[ item ]
  item
  item

Pressing whatever key to select it, a menu would pop up alongside the item to do stuff with it.
[ item ]   drop
  item   [ equip ]
  item


#3 elfin8er

  • Members
  • 133 posts

Posted 30 August 2012 - 05:54 PM

View PostKingdaro, on 30 August 2012 - 05:47 PM, said:

Perhaps you could create a key to open up the inventory menu, where it would list all of the items. The selected item would have brackets around it.
[ item ]
  item
  item

Pressing whatever key to select it, a menu would pop up alongside the item to do stuff with it.
[ item ]   drop
  item   [ equip ]
  item
I was sorta thinking of the same thing, but I'm having trouble with the coding bit. How to list the items without breaks in the middle, how to keep track of the players inventory, ect.

#4 elfin8er

  • Members
  • 133 posts

Posted 02 September 2012 - 11:27 PM

Bump! (Let me know if bumping isn't allowed.)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users