Hello, the game is made with Unity and I used 'HingeJoint2D' components for the body parts. To keep the stickman balanced, the legs and torso keep rotating towards a specific angle (I change this 'target angle' to make the walk animation). All rotations are done with Unity's 'Rigidbody2D' components. The actual source code for this project is pretty old and could use some improvements, so I won't sell or share it. (I'm also working on a new project with physics-based movement like this.)
This is a brief explanation of how it works, I hope this helps you out!
← Return to game
Comments
Log in with itch.io to leave a comment.
Are you willing to sell the stick man figure asset in this platform? or you bought it somewhere else if yes would you mind sharing the source?
Thank you
Hello, the game is made with Unity and I used 'HingeJoint2D' components for the body parts. To keep the stickman balanced, the legs and torso keep rotating towards a specific angle (I change this 'target angle' to make the walk animation). All rotations are done with Unity's 'Rigidbody2D' components. The actual source code for this project is pretty old and could use some improvements, so I won't sell or share it. (I'm also working on a new project with physics-based movement like this.)
This is a brief explanation of how it works, I hope this helps you out!