3D pick up class
3D pick up class
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
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
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