- Home /
Moving Forward with an Animated Spirit (So to speak)
Hi,
I know that I can't make the engine do a certain fuction that is bound to a certain key. However (And I hope this is the case), can I do this: say I was making a platform game (I'm just using this as an example) and I wanted my character to move forward when I pressed the "F" key (why I should want this I don't know). I would want my character to move forward, and execute an animation by the pressage of the "F". Can this be acclomplished?
Thank You
Answer by DaveA · Feb 13, 2012 at 11:13 PM
Maybe you need to re-read the manual. You certainly can bind function to keys, in several ways. Please see http://unity3d.com/support/documentation/ScriptReference/Input.html especially http://unity3d.com/support/documentation/ScriptReference/Input.GetKeyDown.html You can do whatever you like when a key was hit, move forward, play animation, play sound, whatever.
Your answer
Follow this Question
Related Questions
How to get a Character to move with a moving platform ? 6 Answers
moving platforms 1 Answer
how to have the escape key actualy close the game build 3 Answers
How to time when a button is pressed 1 Answer
Is it possible to keep the same Vector3 value using ScreenToWorldPoint with the camera moving? 0 Answers