Questions tagged [control]

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

18
votes
5answers
6k views

How to address players struggling with simple controls?

I have an HTML game I built with Phaser 3, and I can't decide what to do with the controls. I've changed them several times, and now I feel like I've hit a sweet spot between usability and fun. ...
1
vote
1answer
85 views

How to control jump strength by how long the player presses the jump button?

In a platformer game I am working on, I want my character to have controlled jumps. If I simply tap the jump key it will jump a just a little or if I hold it for a time it will jump higher. What do I ...
0
votes
0answers
8 views

Controls don't work when parent or target moves

I have a platform for catching a ball. Platform physics material has bounciness value of 2 which pushes ball twice high from compared to its original position. Camera and platform have scripts ...
1
vote
0answers
65 views

How can I solve the jerky images when camera positions were calculated and sent from another computer?

I'm working on a simulator project. Computer A which uses a stick as a controller to produce operation data and calculate simulate data which will be sent to computer B as camera positions to render ...
0
votes
1answer
40 views

Access a clone of an instantiated object - not all the clones?

I am trying to access the object I instantiate - basically a prefab car instantiates cars (one after one) ..the problem that when try to move one .. they all move together ... what's the best way to ...
1
vote
1answer
59 views

Detect collision with bullet physics, to make a character controller

I inherited from btCollisionWorld::ContactResultCallback but I really have no idea how to use this virtual function: ...
1
vote
2answers
210 views

How could I make the player's movement more responsive?

I am working on an Air Hockey game; I tried making the movement physics-based, by doing this: ...
0
votes
2answers
190 views

Aiming in a twin stick shooter

I am trying to implement a twin stick shooter game, sometimes referred to as dual stick shooter where the left stick controls movement, and the right stick aims a gun. What I do now, is directly map ...
-1
votes
1answer
55 views

How to do drag controls?

I wanted to control my character with dragging controls (horizontally only) I currently have a code that controls the character with touching the left and right screen. I wanted the same controls as ...
1
vote
0answers
82 views

Why is my control scheme is not casual enough? [closed]

I am building a game like counter strike but 2dimensional and for android, it is already in beta phase. I have already share it with my friends and classmates to play it. Almost all of them said the ...
1
vote
1answer
250 views

How can I remap Unreal's Editor default movement (WASD) keys for a non-QWERTY keyboard

I am using a French (AZERTY) keyboard, and as such my "usual" game movment keys are ZQSD instead of WASD. I have been trying to change Unreal Editor's default keys to those I am accustomed to but I ...
1
vote
1answer
69 views

Special moves using mouse movement?

Recently, I accidently broke my PC controller and I was forced to play Skullgirls using the keyboard. Needless to say, it sucked. Fighting games are the kind of games where a controller is (almost ...
2
votes
1answer
64 views

Implementing modular game control with JSON/etc. config file?

I'm having trouble wrapping my head around a method to compartmentalize my game control scheme within the game loop in an efficient way. Currently this is basically how my control works in bad ...
0
votes
1answer
192 views

How to swap between two player objects in Unity?

I have two object for the player. Whenever I press space I'd like to swap between them and also I would like to change the first player main camera to the second player camera and equally for the ...
1
vote
1answer
196 views

How can I process extra mouse buttons using Monogame?

I use Monogame for game development. For processing mouse input, I can use the Mouse class to query basic information like left click state, right click state, and ...
1
vote
1answer
38 views

What is the best option to implement buttons as player controls?

I am familiar with programming, but new to Unity. There seems to be a million ways to implement a right and left button for turning the plane. I'm wondering what the standard/easiest/best way to do ...
1
vote
1answer
2k views

Unity's CharacterController vs. Rigidbody with Collider

With a few friends I started to make a 3D game in the style of the old platformers à la Super Mario 64 / Spyro / Banjo Kazooie. So now we are thinking about the controls and how to do them. There ...
1
vote
0answers
76 views

Unity and Apple TV Remote control sensitivity

I'm developing a game for Apple TV and I'm responding to the swipe gesture using if (Input.GetKeyUp(KeyCode.Joystick1Button4)){ DoSomething(); } But the ...
2
votes
1answer
73 views

How can I stop certain keys from being prioritized in a 2D platformer?

I am currently working on a 2D platformer in Monogame. I have implemented WASD and arrow keys control, but because of the ordering of the if statements, the D key is always executed last if down, ...
0
votes
1answer
66 views

Double touch joysticks

I am developing a mobile game where I need to control main character in any direction using touch analog joystick (https://pineight.com/mw/images/6/6f/Ipoc_dpad.png). It's ok but I also want my ...
2
votes
1answer
399 views

Handling multiple controllers in a single player game

Currently implementing input support for a single player game and I'm unsure how best to handle the (admittedly odd) situation where the user plugs in 2 or more controllers. Should only one be active, ...
1
vote
1answer
97 views

Using a Windows forms Textbox control in an XNA game

What I want to do is this: Use a standard Textbox control in an XNA game. This will be the only control used, and the game is designed in xna alone. I (for some reason) cannot get the game to "see" ...
0
votes
2answers
93 views

How To Have My Character Turn When The Camera View Moves

So I have recently finished animating my character, having it move with key presses and have applied a camera to it. But I am stumped on how to have the player turn when the camera view moves, and ...
1
vote
1answer
414 views

2D Driving Game with Unity

I'm trying to make a 2D car driving game in Unity and I'm having problems with my code. I am able to move forward,backward,turn left/right using arrow key from my present code ...
2
votes
1answer
142 views

How to stop diagonally in an event driven input system?

Example scenario: Assume 2 dimensional top down movement system. Given that I have 4 directional keys ( UP / DOWN / LEFT / RIGHT ), I am able to move in 8 different directions 4 perpendicular and 4 ...
1
vote
1answer
293 views

Interactive Controls (switches, knobs, buttons) in Unity

I'm working on a puzzle aspect of a game, and wanted to make a section where players relay information to one another, and have to input the correct values. At its most basic, its a few stored ...
0
votes
1answer
107 views

How to map changing stances (southpaw/orthodox) to gamepad controls?

I am developing a third person hack n slash style game which features a variety of melee and projectile weapons as well as unarmed combat. The player will be able to dual wield any combination of the ...
-2
votes
1answer
72 views

How to make my “first person controller” continue to turn left or right when key is pressed in Unity 5?

I recently posted this How To Make My First Person Controller turn left and right in unity 5 but now I'm having a slight problem when I press the key that turns my camera it only does it for a little ...
0
votes
2answers
5k views

How To Make My First Person Controller turn left and right in unity 5

I want my first person controller to turn left and right instead of just moving straight on that axis. i have a 3d environment setup in "unity 5" and i am working with the "first person controller" ...
0
votes
1answer
686 views

Handle two different touch gestures at same time without overlapping

I'm trying to create a Character touch controls for 2d platform. In my script Im using one horizontal swipe and hold touch gesture and one vertical swipe gesture without hold.Both are different ...
2
votes
1answer
789 views

Distinguish touch gestures for distinct horizontal and vertical commands

In my script below I'm using horizontal and vertical swipe gesture to move the character but both gestures are called on a single touch. ...
0
votes
1answer
478 views

Swipe and hold character movement not working

Heres my PlayerControl script ...
1
vote
0answers
935 views

Standard Assets Cross platform joystick sensitivity

I am using the standard asset joystick that comes with Unity 5, the sensitivity changes depending on the device used, for example on an Samsung S3 it is more sensitive than on a Nexus 7 2013, how can ...
0
votes
2answers
914 views

Joystick like controls in unity for mobiles

How can i achieve joystick like controls on mobile? For example i have a 2D platform game where character should keep on moving right when swiped right and held and vice versa, just like a real ...
3
votes
1answer
81 views

How to decide the direction of movement, when navigating a fixed path in a 2d overworld?

Suppose, I have a 2D overworld like in Super Mario Brothers 3, but without junctions or intermediate nodes. Only a single, contiguous path of level nodes, which should be navigated with the arrow keys....
2
votes
1answer
684 views

Architecture for game character movements with user input and a finite state machine

I have a JavaScript canvas game setup using Phaser framework. When I first made my character able to run, jump, and crouch, I used lots of if/else conditions and ended up with an ugly, buggy mess. I ...
2
votes
1answer
562 views

Keeping an object constrained to a 2d radius based off of the camera

A few weeks back I posted a question about keeping an object on the screen. What I would like to do now is clamping an object around a 2d radius based on the camera. I'm need this for a reticule ...
1
vote
2answers
194 views

Is it possible to have FixedUpdate execute once every n frames?

I'm currently building a small game, and I've created this simple character controller using FixedUpdate, which executes every frame. ...
4
votes
3answers
4k views

What exactly are “tight controls”?

I hear in many game reviews, how gamers complain about the controls of a game, when they hate it, or how they praise them when they work right. This expression comes up: "Tight controls". It seems ...
1
vote
1answer
43 views

How can I clearify users my controlls?

In my game I use a really simple control mechanic to control a character on screen. But my problem is that users do not understand this control. Beside a little delay problem they work this way: ...
3
votes
1answer
1k views

How can I avoid a delay with continues touch detection in swift?

I want control a character on my screen with a continuous swipe gesture. As soon as I do a swipe +x or -x my character moves ...
0
votes
1answer
920 views

Unity3D - Change player input axes on trigger

Hope someone can help me with this, it seems like it should be a simple problem but that only makes it more frustrating! I have a simple game where you roll a ball around by applying force to the ...
1
vote
2answers
297 views

Rotate Character towards Moving direction

So my Problem is that my Character is always shooting in the way it is looking. Unfortunaly my solution seems to be a very bad one. I am not really cabable of aiming with my solution. Neither with ...
0
votes
1answer
98 views

In Unity, what does the camera script's “Behaviour missing” error mean?

I started in Unity few days ago and made a cube with a tank control style. Now I'd like to create controls similar to 3D fighting games (Gunz, Blade Symphony, …): Control body direction with the mouse ...
2
votes
2answers
254 views

Twin-stick controls for a cohesive group of agents

I'm trying to implement a classic twin-stick controller for a group of physics-based game objects. Here are the rules I'm trying to follow: Agents always stay close to each other within a certain ...
1
vote
3answers
2k views

Unity rigidbody2d.velocity jumping causes weird bouncing

Im working on a game 2d game that has some platforming. I followed this video as guidance and produced the following code: ...
16
votes
4answers
16k views

How could I constrain player movement to the surface of a 3D object using Unity?

I'm trying to create an effect similar to that of Mario Galaxy or Geometry Wars 3 where as the player walks around the "planet" gravity seems to adjust and they don't fall off the edge of the object ...
0
votes
2answers
2k views

How can I move objects pixel by pixel in the scene editor?

I'm trying to find a way to move objects pixel-by-pixel(on my screen at least) in the scene editor. I tried a lot of different buttons but nothing seems to work, please tell me Unity has this ...
1
vote
1answer
535 views

Box2D platformer: Why does horizontal movement stop jumping?

I'm writing my sBox2D game character's movement code, but my implementation of jumping is failing: When I press the Jump key, the character jumps OK. However, when I press jump and another key (like ...
3
votes
1answer
78 views

Giving one controler button two functions

I'm currently working on a game that allows the player to do some different actions. Dodge (X button) Attack (A button) Use Item (Y Button) Block (BButton) I would like to be able to use the "Y" ...