Questions tagged [control]
Translation of user input (via mouse, keyboard, gamepad, touchpad or other hardware interface) into in-game actions
115 questions
0 votes
0 answers
31 views
Mobile Input for android build
I want to make buttons for a mobile build, testing with android 11. To set variables, which I read in other scripts, I use the following code: ...
1 vote
2 answers
275 views
2D Zoom to mouse point
So I'm trying to create a zoom function for my 2D camera. The best result I've got so far is: But something still feels off, and I just can't seem to pinpoint it. My code currently, which simply ...
0 votes
2 answers
93 views
How to capture a signed displacement using an analog trigger?
The details of my particular problem are a bit convoluted, but take this similar scenario: I want the player to be able to control the velocity of the character in some direction using only an analog ...
0 votes
0 answers
542 views
When did the Z - X buttons became standard?
I like platformers and I usually play them on a keyboard. For a while in the early 2010s, there wasn't quite a standard between my platforming keyboard controls. and my settings varied between a ...
1 vote
0 answers
51 views
How to efficiently move a unit to a given 2D target position using tank controls?
I am looking for a simple algorithm that can move a unit as fast as possible to a given target position. The unit can only move using the "tank controls": it can turn in both directions and ...
2 votes
2 answers
636 views
Get and change hold durations of an InputActionAsset's bindings through script
I have an input action in my project that is performed after being held for a length of time. By default it begins after 0.2 seconds, but I'm trying to add a slider to increase or decrease it in my ...
4 votes
1 answer
105 views
What does "Continuity of response" mean in the book "Game Feel"
In Steve Swink's book "Game Feel", he talks about 3 thresholds the computer must meet in order to maintain the illusion of real-time control. The impression of motion (display above 10 ...
0 votes
0 answers
1k views
Control sound volume in Java
I'm trying to control the volume of a file with keyinput. But all I get is a null error: Exception in thread "AWT-EventQueue-0" java.lang....
0 votes
1 answer
171 views
All kinds of 2key controls
I want to find all possible ways to control a game using 2 keys on input. 1. Summarize the problem I find a brand new game engine that has only two inputs but great potential! And the community of ...
0 votes
0 answers
274 views
How to add mouse aim to flight script
I am making a flight combat game and I want to add mouse aim to control to the flight script I am using. Is there any way I can add mouse aim to my script similar to Warthunder's mouse aim. Mainly ...
0 votes
1 answer
250 views
How can I implement an aiming system like the Tank Stars mobile game?
I have been trying to implement the same aiming system as in Tank Stars, but I got a little stuck. I implemented simple stick aiming, which basically aims towards the stick movement. In Tank Stars, ...
0 votes
1 answer
84 views
Multipurpose buttons
As in the title, I am trying to figure out how to use a button for multiple purposes in Unity. In my specific case for instance, I am currently using the joystick button 0 (the A button) to perform a ...
1 vote
0 answers
63 views
User input scheme of 2d vector field on a 2d plane for navigation
I want to create a strategy game based on distributions of "units" which can be moved around and attack each other. By distribution of units i mean that i don't have any discrete units ...
0 votes
0 answers
41 views
Script not working (Function not changing value)
I have this script that I made for an FPS character. public class Player_Movement : MonoBehaviour { public CharacterController controller; public Transform camera; ...
1 vote
1 answer
766 views
Godot 3.X Implementing a smooth movement for pitch, yaw & roll
I'm implementing pitch, yaw and roll on airplane object, but when rotating the object (either pitch, roll or yaw), it starts rotating slowly but then the rotating movement goes awfully fast very ...