Question by
Jace-Paxz · Jul 14, 2017 at 08:09 AM ·
getkeydown
moving object up & down with 1 keycode.
hi to all unity dev out there, hope you are doing good. basically i made a simple game that i have in mind for while practicing. i just want to ask on how to move an object with just 1 keycode. example "space".
when you hit space using GetKeyDown, the object should go all the way up and when you hit space again while the object is going up, that object should fall all the way down and so-on an so-fort.
thnx in advance hope anyone can help me with this.
Comment
Your answer
Follow this Question
Related Questions
Input not working after colision 0 Answers
Help! On/off button 1 Answer
How can I simulate the smoothness of the Input.GetAxis? 0 Answers
What is the difference between Getkey and Getkeydown (C#) 1 Answer
C# GetKeyDown not working 3 Answers