Slow Response on phone: From "GuiTexture Tapped"......to.....Jump / Walk action

Hi all. I just built to my phone for the first time! Yipee!! :stuck_out_tongue:
Script works fine. I just noticed that there is a slow response from when the user presses the gui-texture to when the character actually jumps.
Here’s my code:

////// This gets the touch on the screen.

Please tell me if its something I’m doing with my addforce or translate*Time.deltatime that is affecting the responce from the button

Do you have any OnGUI() method calls?
These are notorious for killing mobile device performance.

Use code tags when posting code please.

–Eric

Sorry Eric!! First time posting code here. :-? (Fixed)

I don’t think I have any OnGui calls Meltdown. I am just using three invisible Gui textures as the buttons. When the user presses the button there is a small delay till the action is performed. This is problem cause if you want to jump over a ledge you have to press jump a half second before you would naturally do so.

So your saying using Gui is not the way to go with mobile devices? Is there a way to use a simple box collider as a button?

regards Dave

there is a way to use box colliders, yes. check out raycasts and unity3d.