How would you make a walk home drunk game?

Can someone explain how the physics works in a game like this?

http://www.maniacworld.com/walk_home_drunk.htm

Im not quite sure, im not worried about the walking but the movement how the guy rotates and gets dragged to the edges like that?

Can someone explain?

Currently I’m playing around with some controllers and im adjusting the gravity and and have the rigidbody2ds fixed angle set to false, which creates the rotation thing, but its not perfect.

go to local pub and observe a drunk…go back home and animate a sprite from what you have seen

1 Like

Very funny! :slight_smile:
Actually solved it, unity had the exact script i was looking for in the documentation, i just tweaked it a bit.

glad it worked out for you…it sucks when your stuck

can you link it please

There is pretty much an exact game like this made in Unity that two guys created in 15 hours.

They released the project if you want to check it out.