- Home /
player jumps too high when clicking with two fingers.
hello i'm making an android game where the player jumps everytime you tap on the screen.now the problem is when you click with two fingers he jumps soo high.i don't want that to happen.does anyone know how to fix this. i'm using a button that covers the whole screen. and i use Event Trigger OnPointerDown(PointerEventData eventData) to detect the touch.and rigidbody2d.addforce
Answer by Casiell · Jan 02, 2020 at 11:10 AM
Please share your code.
My guess (I'm like 99% sure of this) is that you add force every time you press the screen, so you could jump as high as you want if you keep tapping the screen.
Before adding force you have to check if player is not jumping already
i know that's not my problem and i've already solve it by using Touchcount