Hello, i got a problem with the exportation of my 2D game to android phones. I can’t change or i don’t know how, the Input.GetKeyDown(KeyCode.Space) to Android Touch Screen. I want my character to jump (change his gravity) when you touch the screen. Can someone help me please ? I got a boolean, so i can’t press jump while i’m in the air, i need to touch the ground and be able to jump again.
Thanks for you answer, when i try to put Input.touchCount > 0 instead of Input.GetKeyDown(KeyCode.Space, the console says “Unexcepted token : &&” so what can i do ? my TouchSol means that when i touched the ground one time, i can touch the screen to jump, and i can’t jump when i don’t touch the upper ground…
sorry for this late reply… i just tested it now… and man… thank you a lot it works. It’s awesome my baby game is on my android device ! Thank you again mate love you.