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.
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
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!
(I got the c# versions from somewhere else, I think it was the Forums or Unity Answers or something)
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!
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
@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.
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!
(I got the c# versions from somewhere else, I think it was the Forums or Unity Answers or something)
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.
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:
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.