character jumps when pressing button

Hey guys,

I have been working on a game project with some friends and honestly they’re not the best at coding. i’m trying to figure out the mistakes that were made and i’m having trouble finding and fixing the problem.

The problem is there is a shoot button and a pause button as well as a character that jumps whenever you press input.getmousebuttondown(0).

So the problem is every time a player presses the shoot button or the pause button the character jumps then either shoorts or jumps

I’m not sure how to fix this and would greatly appreciate any help.

If you would like to see some code i would be more than happy to show that i’m just not to sure what to show right now.

Thank you

A good place to start would be to search the project for Input.GetMouseButtonDown calls.

It calls in the player movement script by an if statement. if its pressed than the player jumps