Skip to main content

Questions tagged [control]

Translation of user input (via mouse, keyboard, gamepad, touchpad or other hardware interface) into in-game actions

0 votes
0 answers
31 views

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: ...
CheckerT's user avatar
  • 176
1 vote
2 answers
275 views

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 ...
Valtsuh's user avatar
  • 139
0 votes
2 answers
93 views

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 ...
Thomas Klingler's user avatar
0 votes
0 answers
542 views

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 ...
Steven's user avatar
  • 965
1 vote
0 answers
51 views

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 ...
tigrou's user avatar
  • 3,279
2 votes
2 answers
636 views

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 ...
pocketlint60's user avatar
4 votes
1 answer
105 views

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 ...
Ken's user avatar
  • 6,136
0 votes
0 answers
1k views

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....
vampsz's user avatar
  • 15
0 votes
1 answer
171 views

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 ...
rat's user avatar
  • 3
0 votes
0 answers
274 views

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 ...
Timothy Moore's user avatar
0 votes
1 answer
250 views

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, ...
Raguel's user avatar
  • 103
0 votes
1 answer
84 views

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 ...
FSic's user avatar
  • 188
1 vote
0 answers
63 views

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 ...
worldsmithhelper's user avatar
0 votes
0 answers
41 views

I have this script that I made for an FPS character. public class Player_Movement : MonoBehaviour { public CharacterController controller; public Transform camera; ...
KI.'s user avatar
  • 472
1 vote
1 answer
766 views

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 ...
Progs's user avatar
  • 95

15 30 50 per page
1
2 3 4 5
8