Need help on an simple item drop off system.

Sorry, that title is probably very confusing. All I want to know if i can implement something that allows the player to (after an item is in their inventory) to press a button to drop an item off at something, then take it out of their inventory, then do something when the amount of items is correct.

Example: I’m making my first game, and I just want a player to be able to pick up a certain amount of spaceship parts scattered across a map then add them to the ship to finish the game.

Thanks!

There’s a lot of pieces there. You’ll want to tackle them each individually and carefully put them together. Try to focus on each piece one by one and make sure it’s working well before moving onto the next piece or trying to integrate them together:

  • Picking up items
  • Keeping track of picked up items in an inventory
  • dropping items out of the player’s inventory
  • counting the items that were dropped off

Thanks for the reply. do you recommend any tutorials on how to implement at least the first two things?

Off the top of my head no unfortunately, I’d just be googling it myself.