Quantcast
Channel: Questions in topic: "input.getaxis"
Browsing latest articles
Browse All 266 View Live
↧

How to stop input after hitting a certain velocity

- I've looked so many places and just can't find anything. All I am looking to do is see how to have player input stop once I have reached a certain velocity. I do not want to clamp velocity. Just...

View Article


Can you help me understand this script

hey there I am having a hard time understanding this script. Can anyone please help me with this, by explain it in a clear way, my questions about this scripts....

View Article


Cinemachine freelook cam Crossplatform Input Movement

I'm Using cinemachine freelook cam in my game and until now, i was using my mouse and keyboard for rotating cam and moving player. But i am making this for mobile, so i set up on screen joysticks for...

View Article

UI Button interracts with Input Axis

Hi, i am using an asset from unity asset store that use a custom Axis to controll an object. By default , this use a keyboard / controller as an input,but i want to use UI Buttons to controll it. How i...

View Article

how to calculate Input.GetAxis ("Mouse X") for specific touch index

I'm making a Game. In the Game, user can put multi touches at a time. in programming I divide the screen width into two equal parts. if the user touches both parts of the screen then, I Get the index...

View Article


Basic character controller not working properly

Hi, ive been trying to setup a simple mouse camera which i had all the code working fine, except when i move with "wasd" and move my mouse to turn the camera simultaneously the input freezes up and...

View Article

How to handle Key + Mouse Wheel simultaneously?

My camera code now looks like this: private void Update() { float zoomDelta = Input.GetAxis("Mouse ScrollWheel"); if(zoomDelta != 0f) { AdjustZoom(zoomDelta); } } I want to bind camera zoom to Ctrl +...

View Article

Input.GetAxis("Mouse X") works diferent on Android

Hi, i create a code using Input.GetAxis("Mouse X") for the camera movement, on pc works fine but when i play on Android every time the code starts Input.GetAxis("Mouse X") returns a diferent number...

View Article


Check any Input.GetAxis from any Joystick

Can I check any Input.GetAxis like is possible in Input.GetKey? Looks like Input.GetAxis needs a specific name of the Axis like Input.GetAxis("Horizontal"), I want to check any "inputed" axis, without...

View Article


Input Lag in Animation Script

In the Editor and after building the game on Very-Low Quality (although I can easily run max quality), whenever I press a button, it takes maybe **300ms** to actually register the input. And when I tap...

View Article

Input.GetAxis() wrong values on laptops

Hi, I'm making a 2D project and I'm trying to use the User input to move the camera (top view). I did it with this function attached to a mono behavior component on the camera object: void...

View Article

Radial Menu and Controller Input

Hi, I'm using the right analog stick to control a radial menu. It gives me the correct angle, but when the stick is released it occasionally will return an angle approximately opposite of what it just...

View Article

Camera movement system not working

So I've been making a bad copy of minecraft (I won't publish it of course) and the very first problem I'm encountering since I've started is my camera not wanting to move (so far I've only done that in...

View Article


Controlling 2 players with horizontal and vertical axis

I am making a game which has 2 players. Its a split-screen game. one player is controller using AWSD and the other using arrow keys. The code for moving the players(Car) is using Horizontal and...

View Article

Controlling 2 players using input.getaxis

I am making a game which has 2 players. Its a split-screen game. one player is controller using AWSD and the other using arrow keys. The code for moving the players(Car) is using Horizontal and...

View Article


How to get Mouse X and Mouse Y in the New Input System with visual scripting...

I tried using " delta x [mouse] " and " delta y [mouse] " to make a fps controller on visual scripting using new input system as i saw in a video but the camera and the player still rotate even if the...

View Article

Smooth value in Input System

Hello! Sorry for my bad grammar. I am currently learning and trying out new things with the new Input System. I am using a 1D Vector (float) to get some input and move a car with it, really quickly,...

View Article


Input.GetAxis("Mouse X") always return 0, using normal settings

using System.Collections; using System.Collections.Generic; using UnityEngine; public class MouseLook : MonoBehaviour { float horizontalSpeed = 2.0f; float verticalSpeed = 2.0f; void Update() { // Get...

View Article

Input Axis is Not Setup

Hello. I am working on a flight simulator. I watched a tutorial on making air flight and downloaded an asset used in the video given by the creator. In one of the scripts, it is looking for an axis...

View Article

How to detect Input.GetAxis double tap?

I'm working on a beat em up and would like the player to run when Input.GetAxis("Horizontal") is double tapped, however there doesn't seem to be a built in way to detect that. There also doesn't seem...

View Article

Once for all... is Time.deltaTime good or bad with Input.GetAxis?

Hello guys, I'd like to ask something that always bugged me out. I have made a deep search on here and other forums and it seems I collected a fair amount of different opinions about it. **Should I use...

View Article


Can't figure out how to get a crosshair to adjust size with mouse movement.

I am trying to make a dynamic crosshair, one that changes size with player movement and mouse movement. Player movement successfully makes the crosshair enlarge and shrink back to size when the player...

View Article


Input.GetAxis not returning 0 when keyboard is idle

I recently reimported an FPS shooter I was working on and noticed that my character was automatically moving without any keyboard inputs. So I did some debugging and realized that...

View Article

Dashing stops when i let go of WASD keys

Hello, I have a dashing script that allows you to dash based on your input (I.e. W + D is forward right). Now, as i stated in my question, The dashing seems to stop whenever I let go of wasd. Here are...

View Article

How to rotate gun only on X and Y axis?

I have a game where the player is stationary and enemies walk at them. I have a gun in front of the player view that moves left and right / up and down with input from the mouse. However, The Z...

View Article


Help needed for using Mouse in the new input system

Hello! What are the equivalents of Input.GetAxis("Mouse X")/"Horizontal"/"Vertical" in the new Unity input System? I have an action binding set to Position [Mouse] and am using the following...

View Article

My input axis refuses to work properly on mac,How can I fix input axis on osx?

In my project settings I set my horizontal and vertical movement to the correct axis to work with my controller's d-pad. However when I press left on the d-pad, my input reads left+down and when I...

View Article

How to get which button is being pressed when using...

Hello all, I am wanting to create a 2D fighting game (think Street Fighter) and have been watching tutorials for 2D character movement. I can get my sprite to move left and right using Rigidbody2D and...

View Article

[Tip] Input.GetAxis not working.

Input.GetAxis stopped working. It literally stopped taking inputs from axes like Horizontal and vertical. After going through all the typical measures, I found that if you have set up a unity remote...

View Article



How those inputs work? Why there are differences in movement in -game?

I created a game in my studies, and theres is a coop mode. PlayerOne and PlayerTwo have two different inputs methods and they behave differently. PlayerOne seems to have a delay between the time I...

View Article
Browsing latest articles
Browse All 266 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>