about 6 years ago
Hi all im working on a game 2d , i want to make a space game on 2d and i all most did it but the problem is on axis it wont work :( so i need help here is my script in C#
public float speed = 10;
float translation = Input.GetAxis("Horizontal") * speed;
Input.GetAxis("Horizontal")always use for horizontal axis. It always returns value from -1 to 1 for keyboard.
It works only when you press Left arrow,Right arrow,Key "A" or Key "D" on keyboard for moving an object either left or right.
I hope you will get help from this.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2021 FindNerd.com. All rights reserved.
Sign up using