on-internet
← Community

Parenting and deparenting game objects

Stack Overflow ·

I'm implementing a wall climbing system into my 2D game and I'm stuck on a few of the trickier parts. My thinking is that I would have my player parent to the wall object when it collides with the 2D collider attached. When the player collides with the wall, the player becomes a child of that wall and is limited to only moving up and down on the wall. When the player jumps, or reaches the top, they are no longer a child of the wall. But the player has the ability to jump on any point onto the wall they land on and stays at that point. Right now I have the parenting part worked out with the fol

Comments

Sign in or sign up to comment and upvote.

No comments yet.