Tabela91 / CIDP-UnityProject

Unity Game
1 stars 0 forks source link

Jump Button #1

Open Pantalleresco opened 8 years ago

Pantalleresco commented 8 years ago

I do not think the jump button is working as intended. When I press the space bar or the on screen jump button, the character does jump. But if I press it over and over again, the character keeps jumping higher and higher without ever coming back to the ground.

Tabela91 commented 8 years ago

Thank you for the feedback. Yes you are right, at the moment there are no limitations in place to keep the player from jumping infinitely up. I am still looking into how I may resolve this issue. I may need to implement some check which ensures that the character is grounded before being able to make a jump.

I believe a tool exists in Unity known as raycasting which may come in useful. However I still need to do some research to better understand how I could implement it into the game. Thanks again for the feedback. I will respond again if I manage to implement a fix.