Search Unity

"Peerer's Ledge" Parkour system

Discussion in 'Works In Progress' started by Stopsecret, Apr 1, 2014.

  1. Stopsecret

    Stopsecret

    Joined:
    Oct 31, 2012
    Posts:
    67
    Like my original creative name? Oh, but seriously, after enjoying Mirror's Edge game play videos, I decided to make my own parkour system. By no means finished. Currently you can do all sorts of fancy stuff though.

    $Course.png

    WASD
    General locomotion
    LEFT SHIFT
    go from run into slide
    crouch
    drop down normal when edge grabbing
    hold when falling for height roll
    SPACE
    Jump while on ground
    jump in direction of camera while edge grabbing
    LEFT MOUSE
    Grab edge
    click again to pull yourself up

    Different moves:
    Tic tac
    Run up to a wall and hit space so that you're in the air when you hit the wall
    When you hit or are close to the wall, hit space again to jump off of it.
    Roll
    When dropping from high up, hold shift down to enter a roll
    Wall run(vertical)
    run up to a wall, hit space just before hitting the wall, and hold down up to climb
    Wall Run(horizontal)
    Get up speed and run on the side of a wall
    Edge grab
    When a ledge is around or above your head, click to grab

    https://dl.dropboxusercontent.com/u/40580649/ParkourSys/ParkourSys.html

    This system reuses these same simple keys for different things.
    Forward running also has acceleration.
    Enjoy!

    Now making this open source, feel free to use this for whatever (freeware, payware, I don't really care as long as you're not directly selling these scripts!)
    How to use? Ignore the Animator component, the cam object is your camera and mouselookXcam is the camera's mouselook. Plug it in and it should work fine!
    Donwload:
    CharacterMotor:
    https://dl.dropboxusercontent.com/u/40580649/ParkourScripts/CharacterMotor.cs
    FPSInputController:
    https://dl.dropboxusercontent.com/u/40580649/ParkourScripts/FPSInputController.cs
    Have fun guys! :D
    (I got the c# versions from somewhere else, I think it was the Forums or Unity Answers or something)
     
    Last edited: Apr 6, 2014
  2. indiegamemodels

    indiegamemodels

    Joined:
    Jan 25, 2012
    Posts:
    269
    The feeling is nice so far!

    I would suggest you to write the commands on the top left corner of the demo for example, would be wayy easier to test everything. You can make it toggleable with the H key for example!
     
  3. Stopsecret

    Stopsecret

    Joined:
    Oct 31, 2012
    Posts:
    67
    Thanks! :) That's a good suggestion!
     
  4. EBR

    EBR

    Joined:
    Jan 27, 2013
    Posts:
    117
    Nice demo, I am also beginning to create a first person parkour system. Is your system dynamic, if so how did you go around doing it? I am interested to see how others have built their system. Good work :)
     
  5. Mychal

    Mychal

    Joined:
    Jan 6, 2014
    Posts:
    2
    Quite good! Have you checked PM??
     
  6. Stopsecret

    Stopsecret

    Joined:
    Oct 31, 2012
    Posts:
    67
    @EBR,
    You can look in the script to see how I did it. Basically, I used a lot of coroutines, and a LOT of raycasts ;) It helps to have a good knowledge of dimensions and the space around your character when doing raycasts.

    @Mychal,
    the end of this post should answer that ;)

    Now making this open source, feel free to use this for whatever (freeware, payware, I don't really care as long as you're not directly selling these scripts!)
    How to use? Ignore the Animator component, the cam object is your camera and mouselookXcam is the camera's mouselook. Plug it in and it should work fine!
    Donwload:
    CharacterMotor:
    https://dl.dropboxusercontent.com/u/40580649/ParkourScripts/CharacterMotor.cs
    FPSInputController:
    https://dl.dropboxusercontent.com/u/40580649/ParkourScripts/FPSInputController.cs
    Have fun guys! :D
    (I got the c# versions from somewhere else, I think it was the Forums or Unity Answers or something)
     
  7. The smooth gamemaker

    The smooth gamemaker

    Joined:
    Mar 10, 2014
    Posts:
    53
    are you making this game for mobile?
    if you, please tell me how to edit a game so that it can be used on mobile.
     
  8. Stopsecret

    Stopsecret

    Joined:
    Oct 31, 2012
    Posts:
    67
    Hey The smooth gamemaker! I have no mobile experience so I'm not sure how it all works. :) If I had to guess, you could just swap wherever I have an Input.GetAxis or Input.GetButton for your own values.
     
  9. Noble-Woods

    Noble-Woods

    Joined:
    May 24, 2013
    Posts:
    2
    Hey Stopsecret, thanks so much for sharing your script! A lot of what I was able to accomplish in my game was because of you. Here's a video of the game in case you're curious, I did make modifications to your script but relied on it for the core mechanics:

     
  10. zzcoreyp

    zzcoreyp

    Joined:
    Aug 14, 2014
    Posts:
    1
    Looks amazing thanks for sharing, how hard would it be to use this script for a third person character?
     
  11. ThatVideoGameGuy

    ThatVideoGameGuy

    Joined:
    Jul 21, 2013
    Posts:
    1
    I would like to thank you for sharing your script. I was really confused as to how to do ledge climbing and your script allowed me to combing my raycast system with your ledge grabbing controls for my 2D plat-former. I added an extra ray cast which check above the player to see if there is room to climb up.
     
  12. MrSecretMansion

    MrSecretMansion

    Joined:
    Nov 17, 2013
    Posts:
    113
    Could you by chance make a prefab version and optimize it for Unity 5.4?
     
  13. Lolerz

    Lolerz

    Joined:
    May 24, 2017
    Posts:
    21
    The link no longer works anymore. Could you mae a new one?
     
    Xamur likes this.
  14. hedgefield

    hedgefield

    Joined:
    Jan 1, 2014
    Posts:
    29
    I'd love to buy this too, there's no good Parkour controller out for Unity right now.
     
    twitchfactor likes this.
  15. notijaz

    notijaz

    Joined:
    Jan 28, 2018
    Posts:
    2
    Please update the links i want it so badly
     
    twitchfactor likes this.