Jump logic issues
I am making a game where there are cubes and the player can attract them to the player. The problem is that the player can jump on top of a cube and attract the cube upward and then jump on the cube again (resulting in infinite jumps). I still want the player to be able to jump on blocks though. I can make it so the player can't jump on objects that are being attracted, but the player can release the object for a split second and jump on it anyway. I can also make it so the player has to have a vertical velocity of zero to jump, but at the peak of the jump, the player's vertical velocity is zero so it doesn't fix anything. I could make it so the player can only jump on an object that is touching the floor, but then the player won't be able to jump on top of stacked cubes. Everything I have thought of to fix this problem, unfortunately, doesn't work.
Your answer
Follow this Question
Related Questions
I have a problem in the jump system. 1 Answer
Problem with the Character Controller on the Y-Axis,Character Controller drifting in the Y Axis 0 Answers
Problem with Jump script 1 Answer
While (starting jumping or in jump) holding W key makes game object jump high and fall slow. 1 Answer
Make it so you cant jump in air 0 Answers