+ 1

How to input value from user for making small games?

I know how to make animations using JavaScript and so I thought to make a small game but the problem is how the user will input?I cant use prompt. I need to know how to get a value from user without interfering with the animation. I also want to know that what is the value for Eg. Left arrow key, etc. Please help me in implementing them also with an Example code.

30th Mar 2017, 12:00 PM
Aditya Kshitiz
Aditya Kshitiz - avatar
3 ответов
+ 3
i think in unity thr is something like GetKeyValue or GetInput and since u r good in javascript u must go for Unity
30th Mar 2017, 5:48 PM
Suhail Pappu
Suhail Pappu - avatar
+ 3
nope it works in javascript so no need of c#
31st Mar 2017, 10:43 AM
Suhail Pappu
Suhail Pappu - avatar
+ 2
@Suhail Pappu are you sure it would work with JavaScript or i have to learn c#. Please help me in more detail.
31st Mar 2017, 10:15 AM
Aditya Kshitiz
Aditya Kshitiz - avatar