unity free tutorial
Unity tutorial better jumping
This weeks unity tutorial will be aiding me to improve the jumping mechanic and allow for a better controlled and more fluid experience. This tutorial is based on using gravity and colliders and using scrips to improve them. The whole point of the tutorial is to allow for the player to decide on their jump force and distance. This means the harder the player holds the jump button the higher an longer the jump will activate. This works by incorporating velocity and a fall multiplier. In our script file we need two floats fall multiplier and a low multiplier. Then we need to reference these to our body. Finally, we must have an update the command, so if the player hits jump the script will it will apply the gravity we set and then this will be multiplied by the fall multiplier we set then we will multiply this all by the actual time been " Timedeltatime. This all together will allow the player to have more control over placement and allow me to space blocks and jump locations more exactly. I have found this tutorial very helpful and very well explained as he was clear and also ran use through everything through a video
Comments
Post a Comment