Hey, I made a picking up system for cubes and as you can see it works randomly? I have also provided my code. It seems like it waits a little bit before parenting to the player i think? But as you can see there isn’t any await command. Could somebody please help me with this?
The cube is getting picked up right away, that’s why it moves upwards.
It’s not following the player exactly though, and sometimes it’s quite far behind. Is the cube a rigid body? if it’s a rigid body you should probably freeze it (with freeze_mode = RigidBody2D.FREEZE_MODE_KINEMATIC) when you pick it up.
a similar thing works for me even when it’s not frozen though so there may be something else happening for you.