❔ 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:
1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.