how create a pickable object

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Juwu

I want to make a box that the player can hold and move , the box must follow the player position and if the player turns to the other side the box move

:bust_in_silhouette: Reply From: goldfish

Just make a bool in the box script that is true when the player carries the box.
If it is true just set the box position the position of the player. Obviously that box can not be part of a tilemap because tiles aren’t expected to move.