Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [control]

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

0
votes
1answer
18 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 ...
0
votes
1answer
18 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: ...
0
votes
2answers
70 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
88 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
31 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
75 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 ...
0
votes
0answers
207 views

How to design a wrapping world map in Unity

I am trying to design a level in Unity constructed from a number of tiles in a grid, that will wrap around in both directions as you move. My plan was to have trigger collision boxes on each side of ...
0
votes
0answers
12 views

Is there any way to control the model rather than camera in threejs?

I'm learning threejs and using it within my current project. And I'm familiar to the orbitcontrols that is able to make camera translating, rotating and zooming. It pretty cool and very convenient for ...
0
votes
0answers
99 views

Tried to make Quake/Half-Life camera act like it does in Mario64/Sonic Adventure but run into a weird bug

So I am trying to implement such a system of controls and camera where moving left would mean moving to the left of the camera's current view direction, etc. I think this is also called movement in ...
1
vote
1answer
165 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 ...
0
votes
0answers
135 views

Creating 2D player controller in Unity

Want to create a controller of a ship for 2D space arcade. But I want it to feels like the ship has actual thrust in engines in the back. Or just that it has a tint of real physics. What is the best ...
0
votes
0answers
16 views

Problem with Mouse function not replicating properly

I'm working on multiplayer shooter, and i made a separate mouse control function for my custom mechanics. But there's a problem, mouse only rotate camera on client 1, but client 2 can't see that ...
1
vote
1answer
68 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
58 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
99 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
156 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 ...
0
votes
0answers
57 views

How can I make my 2D sprite properly double jump?

I am trying to make my sprite, who is a little red box jump and then jump again while in the air. ...
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
57 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 ...
3
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
60 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 ...
3
votes
1answer
340 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
88 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
371 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
125 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 ...
0
votes
0answers
105 views

Unity - Translate get axis to proper touch control system

The player in my game moves on the horizontal axis only. So far it's moving via left/right arrows that pass Input.GetAxis("Horizontal") to my MovePlayer() function. It's a mobile game so I'd need to ...
1
vote
1answer
272 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
101 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
70 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
4k 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
621 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 ...
3
votes
1answer
683 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
428 views

Swipe and hold character movement not working

Heres my PlayerControl script ...
1
vote
0answers
882 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
811 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
80 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
622 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
520 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
149 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
3k 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
42 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
829 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
276 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: ...
14
votes
4answers
14k 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 ...