So in my game, you shoot arrows at enemies and I want the arrows to stay pinned inside them. I've been trying to make a sort of custom pinning function so I can pin the arrows to certain enemies' image points, but it hasn't been working.
My method is whenever an arrow collides with an enemy, it stores the UID inside of an instance variable and then having an event "pin" the arrow and enemy's image point after. This works if there is only one enemy pinned, but it multiples I've been finding that all of the arrows stick to the first enemy that got pinned. I suspect it's because the action is only picking the first enemy with a UID that matches the arrow's instance variable.