Hertzole / gold-player

A first person player controller for Unity.
MIT License
160 stars 16 forks source link

Sliding #25

Open erherhh4herh opened 5 years ago

erherhh4herh commented 5 years ago

This idea comes from the recent Call Of Duty movement system. Where the player, while running, hits the crouch button to slide; for a short period of time making the player faster while also losing said velocity over time; transitioning into a crouch when the player stops.

I made a mock-up edit to the code which simply makes the player move faster within a certain time frame and crouching when its over to demonstrate this better:

https://youtu.be/KRGrQy6wtqo

Keep in mind, that implementation is a simple timer script, and returns the player to normal crouch speed after the timer hits 0. It does not account for lost velocity over the time frame!!

To demonstrate the Call Of Duty movement system, what better way than to show you Call Of Duty :D

https://youtu.be/SyTmwtkjtcM?t=18

You can see as the player slides, they lose speed. I personally love this movement system. It makes the gameplay feel so diverse.

Thanks for your time, erherhh4herh.

Hertzole commented 5 years ago

Hello!

That is an interesting move indeed and would certainly be fun to have! I'll mark this as a feature request and I will see when and if I can get around to it. I can't promise anything, but I will attempt it at some point! Thanks for the suggestion! :)