Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How would you make a walk home drunk game?

Discussion in '2D' started by Edwin F, Aug 9, 2014.

  1. Edwin F

    Edwin F

    Joined:
    Aug 5, 2014
    Posts:
    21
    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?
     
  2. Edwin F

    Edwin F

    Joined:
    Aug 5, 2014
    Posts:
    21
    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.
     
  3. herman111

    herman111

    Joined:
    May 11, 2014
    Posts:
    119
    go to local pub and observe a drunk...go back home and animate a sprite from what you have seen
     
    GarBenjamin likes this.
  4. Edwin F

    Edwin F

    Joined:
    Aug 5, 2014
    Posts:
    21
    Very funny! :)
    Actually solved it, unity had the exact script i was looking for in the documentation, i just tweaked it a bit.
     
  5. herman111

    herman111

    Joined:
    May 11, 2014
    Posts:
    119
    glad it worked out for you..it sucks when your stuck
     
  6. nika8

    nika8

    Joined:
    Apr 8, 2014
    Posts:
    1
    can you link it please
     
  7. brandc

    brandc

    Joined:
    Feb 23, 2015
    Posts:
    16
    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.