Hello everyone. Im completely new to Unity VS and im having some trouble with the code of my double jump. The mechanic itself works, but the player can jump in the air multiple times instead of only once. i think it has something to do with my ground check but i cant figure out what exactly, i would really appreciate some help
#Double Jump not working correctly
1 messages · Page 1 of 1 (latest)
Hey, I am not sure if this will work but you can try it
If that does not work then the problem could be the ground check is not triggering. Its difficult to tell since the Graph is not visible in the video
Alright i tried it but it didnt work. The ground check should be triggering since i have no problem jumping on my tilemap
do you have a update method that increase time using get delta time
it seems like you are adding delta time to timer everytime you jump, you need to put it as a condition somewhere else i think?
wait is your box cast setup correctly, you did not setup the values for distance, and direction