emmap
❔ Newbie Q: Preventing double jump in unity
Im making a platformer game and I want to prevent my character from jumping more than once. So I created a seperate game object that will follow its feet. When it collides with the ground, it will set onGround to true in the player movement script. When onGround is true, then the character can jump. But this is not working. Here is the code: Player Movement - component of the player object:
Ground Detection - component of the feet object:
2 replies