Hideentity before doing the positionentity then showentity again.
What's happening is when you reposition it the collisions are still in play, so you hide it first to avoid collisions.
What's happening is when you reposition it the collisions are still in play, so you hide it first to avoid collisions.