3D pick up class

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Daystar
Posts: 58
Joined: Tue Jul 17, 2007 3:53 pm
Contact:

3D pick up class

Post by Daystar »

I am trying to put together a class that will make a mesh item into a pickup-enabled item for a game im working on, I also wanted to create a manager for managing the pickup items. So my question is what would I need for this to happen code wise? If anyone can help me or if anyone has done this before can you please help me?
DayStar
geckoman
Posts: 143
Joined: Thu Nov 27, 2008 11:05 am
Location: Germany
Contact:

Post by geckoman »

What exactly is your question?
Daystar
Posts: 58
Joined: Tue Jul 17, 2007 3:53 pm
Contact:

Post by Daystar »

What do I need to consider with building this class and if there are any functions in irrlicht that will help in the process?
DayStar
Ein
Posts: 33
Joined: Thu Feb 12, 2009 11:39 pm
Location: UK - Matrix
Contact:

Post by Ein »

you want some sort of Inventory system with item located in "game" and you pick up the items.

If this is what you want you will need to think about it logicaly.
What's the first thing that will happen? Well you will create the item on the ground say, then you would move the player over to the item and pick it up, remove it from the ground and make it iappaer in your inventory. So something like liek that will have to be written in your code. Maybe:

1)Load item mesh to display
2)Check for user input
3)If user input is correct, then remove the item mesh from display
4)Add item to inventory

HTH
Pete
Ein knowledge seeker
Post Reply