I want to create a pick-up item system. Is very simples, i need to take the item in one point, leave in another, and pick-up the item leaved. I tried pin and unpin, but doesn't work.
Sorry for my english
Develop games in your browser. Powerful, performant & highly capable.
He there pieve.
Try adding a variable to your pickup (for instance: "picked_up")
1) if pickup = 1
every tick-----> pin to player
2) player is overlapping pickup
on (button pressed) -------> set pickup.picked_up to abs(self.picked_up-1)
How exactly would it work? Is the pickup done "on touch" or does you want it to be button activated? How do you pick the object up? How do you drop it? Is there a button for each action? Is it only one button that you hold while "grabbing" the object?