I want to know why you are doing this in an OnGui function. I normally handle input with an update function, but maybe I’m just not doing things right.
No, not realy. it should be called in an update function and it would in general be better if you used a characterController.
Also try to assign the object to move once, avoiding ‘GameObject.Find(“Player(Clone)”’ each frame.
do you realy need to find a gameobject every frame ? there are different ways to handle that, create a start function and search there for the target and use the variable in your update function. the start function is only executed once. searching for the same GO every frame is realy not the way to go.
Appels, thank you for the humorous reply. Kage said, “I normally handle input with an update function” which I said I supported as well, then you point out " it should be called in an update function". If I were talking to Jaapi, I would have started my response with “Jaapi, …”. =/