Skip to main content

Questions tagged [touch]

An input method used in games; this generally refers to the input used by mobile phones and tablet-type computers.

Filter by
Sorted by
Tagged with
1 vote
1 answer
986 views

I have been working for many hours trying to figure this out and i can't so I thought once again i'd trouble you kind folks. Basically I am trying to keep this as simple as possible so I can get to ...
Big T Larrity's user avatar
2 votes
1 answer
16k views

I'm new to Unity but not a complete programming novice. I'm trying to use the CrossPlatformInput component from the "Car" prefab from Standard Assets. I can't see ...
Big T Larrity's user avatar
1 vote
0 answers
95 views

I'm just starting to learn Unity and I must admit at the moment im struggling linking my code scripts together. Im used to having a main class to work from. I have been trying to implement virtual ...
Big T Larrity's user avatar
1 vote
1 answer
202 views

I have a problem with the Unity game engine. I am making an Android game. I want to move an object by a small distance every time the user taps the screen, but not when the user holds the screen. ...
Cem Tunçelli's user avatar
0 votes
0 answers
350 views

I have a multi-touch monitor that I am using in Windows 10. I am getting visual feedback on the monitor itself that multiple touches are being recognised. However, within my Gamemaker game, I cannot ...
Bonfire Dog's user avatar
1 vote
0 answers
285 views

I've been trying to create a game with two finger gameplay (ie. If your finger is in the bottom 20% of the screen it will move the player along X axis towards your finger, and if you press finger ...
Big T Larrity's user avatar
0 votes
2 answers
2k views

I am building a Roulette game in Unity 5. I want to place bets on a Roulette table when I touch specific areas on the screen with mouse(PC) and touch(mobile). For example when i touch Number 1 on the ...
Jayesh Duggal's user avatar
1 vote
0 answers
413 views

I've been trying to use GestureListener to turn touchscreen into the effect of my dpad. It all works pretty much, but the touch-held (or longpress) is not always working. It mostly does work but will ...
Big T Larrity's user avatar
-2 votes
1 answer
188 views

My code here works with a keyboard: ...
Farouk Douglas's user avatar
0 votes
2 answers
249 views

I'm trying to get my coin object's Rigidbody to move whichever way it was swiped on by the user through RayCast ...
Gelibelly's user avatar
1 vote
1 answer
508 views

My player is moved around the screen by touch user input. The user touches the character and drags him to another position. (implemented in touchevent: ...
eiskaktus's user avatar
1 vote
2 answers
2k views

I'm using unity2D and C#, and I have a code for touch screen: ...
Andrey Dubchak's user avatar
1 vote
1 answer
154 views

In my (Google Cardboard) Android app I would like to make my camera move on Touch. That movement state should be controlled via a "switch", so when I touch the screen the camera starts to move and ...
hoppla1232's user avatar
1 vote
0 answers
149 views

I'm making a LibGDX game where the player needs to tap to jump. But in this game, the player has to tap extra fast because the player needs to jump extra fast. The problem is, the program can't ...
Eames's user avatar
  • 157
1 vote
1 answer
281 views

I'm making a game where I have buttons on a stage, but the background also acts as a "button". But when I press on one of the existing actors on the stage, it also registers a click in the background ...
Eames's user avatar
  • 157
1 vote
0 answers
59 views

I have a camera that rotates around the player only in x axis when you swipe on the screen. I have two buttons and a joystick prefab on the UI. I don't want the camera to move when ...
MrChips's user avatar
  • 85
2 votes
1 answer
2k views

Please be aware that this was initially a question about how to get the input to work. A comment pointed me in the direction of a fix, but only left me with more questions in regards to understanding ...
Gnemlock's user avatar
  • 5,333
0 votes
2 answers
3k views

I have a raycast that works in the unity editor but not when I build it for Android( tablet or phone, neither work). The code I'm using is as follows: ...
vonis22's user avatar
  • 46
1 vote
2 answers
269 views

How do I move and collide my object (position given by touch or click), by Using rigidBody2D.MovePosition i can only teleport my character, and by using velocity, my character keeps moving, I want him ...
BrianCas's user avatar
  • 121
0 votes
1 answer
722 views

I have a question regarding the exact method for getting the game object that I'm touching. I thought it would be getting the name of the PressGesture once the touch starts...but it returns me a Swipe ...
LifGwaethrakindo's user avatar
0 votes
1 answer
168 views

I want to be able to divide the window of the game in, lets say, 3 places, and when the mouse (or touch) click one of those places, execute some code. Do I have to make each portion a button-like ...
Kudefe's user avatar
  • 17
1 vote
1 answer
119 views

I am trying to make Basic Touch behaviors for my game where i want to Pan Camera by Single finger touch. Zoom Camera by pinch With two fingers ofCourse. Rotate Camera by two fingers rotation. Rotate ...
Syed Anwar Fahim's user avatar
0 votes
1 answer
267 views

I want to change the Computer Input to Mobile Touch Input, if I press Space Button it shoots but how do I change this [Code] to Touch Input ? I want it to have it into void OnTouchDown() but what do ...
NewmakerCompany's user avatar
1 vote
2 answers
74 views

I made an (ios) arcade game that is rather unconventional, and as a result many people wont exactly know what to do or what the controls are when they first open it. As a results I have had to add a ...
J.Doe's user avatar
  • 289
1 vote
2 answers
2k views

In my Unity3d game, I want to get the world position that was touched, when I touch a specific object, regardless of all objects that are in front of it. How would I do that, I only know Camera....
user avatar
1 vote
2 answers
2k views

...
Unprofessional Coder's user avatar
0 votes
2 answers
2k views

I use Touch movement and if I jump and hit a corner with the feet of my player, my player rotates but I don't want this. Can anyone help me jumping without rotating if I hit anything ? here is my ...
NewmakerCompany's user avatar
0 votes
1 answer
79 views

I'd like to have the player moving the finger within the shaded ring: The game should be able to detect "out-of-boundary" events once the finger moves outside the ring. How can I accomplish this?
Minos Niu's user avatar
0 votes
1 answer
1k views

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 ...
user75648's user avatar
  • 181
2 votes
1 answer
1k views

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. ...
user75648's user avatar
  • 181
0 votes
1 answer
672 views

Heres my PlayerControl script ...
user75648's user avatar
  • 181
3 votes
1 answer
886 views

So I’ve created a small app that is designed to be used on smartphones and tablets. Accordingly the app makes use of the sf::Touch class which determines the point on the screen of the device that the ...
Enchanter's user avatar
2 votes
2 answers
222 views

I tried many buttons but I can't connect them with the (Java)Script. So I made 2 gui buttons: one for jump which was easy because I have an if statement and if it'...
Nikola Pejovski's user avatar
3 votes
1 answer
2k views

I'm implementing a touch controller for my game. I am attempting to imitate Tiki Taka Soccer's "ball shooting" controls (gameplay video), where the curvature of the player's swipe affects the curve ...
Stefan Doychev's user avatar
4 votes
1 answer
739 views

How do I detect if two sprites are being touched at the same time? I was able to detect one sprite, but not if another sprite is being touched by the second pointer. ...
Kevin Bryan's user avatar
0 votes
2 answers
1k views

I want to make a game for Android that has a 10x10 Grid Plane as UI.In this game users going to touch on a grid and tihs grid will be painted. My question is how do I understand which gird or tile ...
Recomer's user avatar
2 votes
1 answer
712 views

I currently program a game in which the user don't need to interact with the screen. Is there any way to keep the screen awake?
sok's user avatar
  • 155
1 vote
1 answer
648 views

I have some bodies around the screen(Ball[] balls), and I would like to delete them when user touches them. Also, I have an ...
mugimugi's user avatar
  • 113
0 votes
1 answer
3k views

I am currently developing a game that uses the OnMouseOver() function of a MonoBehaviour object. Is there a true alternative for iPhone? Would I be better of coding my own? Thanks in advance
Joseph Marino Tripp's user avatar
1 vote
1 answer
84 views

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: As ...
Jurik's user avatar
  • 597
6 votes
1 answer
2k views

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 ...
Jurik's user avatar
  • 597
0 votes
1 answer
186 views

I'm using Unity to develop a game. Basically I want the player/rocket to follow a point on the screen where user touches. But It's based on physics. Force must be added when user touches somewhere and ...
Jaspreet Singh's user avatar
7 votes
1 answer
3k views

I've been trying to get LibGDX's viewport and camera unproject() to work and so far none of the tutorials/answers I've found have worked for me. I have a game window of 840x480 units with FitViewport....
LeonhardEuler's user avatar
5 votes
2 answers
699 views

I have an application on win7 which needs to support touch and mouse input using monogame. But reading touch taps proves to be a very hard thing. The TouchPanel is initialized like this: ...
Bonzo's user avatar
  • 51
0 votes
1 answer
905 views

Im building a tower defense game on unity and would like to allow the player to pan the camera on a large map. I am using touchscript to handle the touches. I made a testing project with the ...
DarkDestry's user avatar
  • 1,441
2 votes
1 answer
1k views

I'm making a game and I have implemented GestureListener as my inputprocessor. It came with a bunch of methods such as fling, pan, tap etc etc including touchDown. However, there is no touchUp method! ...
imattacus's user avatar
  • 121
2 votes
1 answer
732 views

I'm looking to achieve a two finger smooth pan system in my project. However, the code below does not work, any interaction with the screen doesn't change to position of the camera. I am unsure where ...
user4985's user avatar
  • 165
2 votes
1 answer
2k views

I am trying to handle the touch of one of the Actors in the stage. The following is the code I have written: ...
Harikrishnan T's user avatar
0 votes
1 answer
2k views

I am looking for detect touch in an actor. The touch in my game is detected in wrong part of the screen. I want to detect touch only on the red circle, here is the code: Static_values ...
user65825's user avatar
  • 151
0 votes
1 answer
2k views

I have a class (I'll call it with letter "A") and class B. A is the object (as a character) and B is the rendering class which have the aim to show A. I am looking for a way to detect when A is ...
user65825's user avatar
  • 151