Page 1 of 1

3D pick up class

Posted: Tue Mar 10, 2009 2:31 pm
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?

Posted: Tue Mar 10, 2009 5:15 pm
by geckoman
What exactly is your question?

Posted: Tue Mar 10, 2009 6:16 pm
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?

Posted: Tue Mar 10, 2009 8:42 pm
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