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
0 votes
1 answer
65 views

I am making a mobile game. To make the player character jump or slide on the ground, I must swipe up or down with the mouse on my computer. I also want my character to climb a wall. The solution I ...
Achie1's user avatar
  • 181
1 vote
0 answers
218 views

As you can see on image I have three Control Bindings Space Bar - works perfectly on desktop. I can press several times ...
EzioMercer's user avatar
0 votes
1 answer
88 views

I have a game where you need to cut chains, similar to Cut The Rope. I want to develop it for Android, so I need mobile controls. For detecting swipes I used ...
CheckerT's user avatar
  • 176
0 votes
1 answer
55 views

I have a 3D object, a blade, that I want to rotate continuously on the x axis, like it's cutting through something. I also want the player to control its z-axis rotation by swiping. It's mainly ...
Nader Amir's user avatar
0 votes
1 answer
164 views

I am diving into libgdx and used their sample game as a starting point. I also added a touchpad to move the bucket. That was kind of easy and worked flawless. My additional idea was to make the ...
WarrenFaith's user avatar
1 vote
0 answers
2k views

Unity for Android suggests that you can hide the TouchScreenKeyboard's input field with the command TouchScreenKeyboard.hideInput. Superficially this looks like it ...
mike's user avatar
  • 501
0 votes
1 answer
326 views

I want to implement a feature in my mobile game where if you press on a game object for a certain amount of time while not moving your finger an animation will play. I also need to be able to drag and ...
Ridertvis's user avatar
  • 155
0 votes
1 answer
2k views

I have a While loop that runs when the mouse is pressed and it look like this: while (mouseClick.ReadValue<float>() != 0) { //Do something } This works ...
Ridertvis's user avatar
  • 155
3 votes
0 answers
1k views

What I'm trying to do: I'm trying to add touch controls to games created with the html canvas and JavaScript so that they can be used on mobile / tablet devices. The controls should simply move a ...
Fishbite's user avatar
  • 141
0 votes
0 answers
351 views

I need a script for Unity that allows a gameobject to be scaled using pinch & zoom touch controls. I have found lots of answers for scripts that cause the camera to zoom in/out but I want a ...
Hzata's user avatar
  • 1
1 vote
0 answers
148 views

I am trying to scale my object by a finger touch just like in Jelly Shift game. It should scale up/down when I move my finger up and down and it should stop when the touch is in stationary phase. The ...
Sedanur Yesilnacar's user avatar
0 votes
1 answer
86 views

I'm making a mobile game in the Godot game engine. I made a spike scene where the spikes will respawn at a random time in a particular position moving upwards. Then I instanced the scene in the main ...
Jack Victor's user avatar
1 vote
2 answers
381 views

I have the following code it works, but I don't know how it works. This is the code I found: ...
Aimon Z.'s user avatar
  • 107
0 votes
2 answers
258 views

I'm working on recreating the board game "Hex" as a mobile game. I'm working on implementing zoom and pan features using two fingers. I feel like I managed to get the zoom to work, but the ...
Cooper Rutan's user avatar
0 votes
0 answers
362 views

Hi I am new to unity and have only a little coding knowledge. Right now I have made my character shoot at my touch position on mobile but when ever I touch the joystick, whick I use to move my ...
Anees's user avatar
  • 1
0 votes
1 answer
633 views

I am currently making a 2D top-down view shooter game for Android, where the game is played horizontally. On the left side of the screen, you can touch anywhere to spawn in a joystick and aim by ...
cikkuabdilla's user avatar
0 votes
0 answers
296 views

I am quite new to Unity and C# (in fact, this is my first project). I am creating a simple 2D top down view shooter game. The game is aimed to be played on smartphones. I have a virtual, fixed ...
cikkuabdilla's user avatar
-1 votes
1 answer
2k views

I'm making a mobile game where you control a 3d ball by touch. So far I can get it to roll based on finger down and drag (via TouchPhase.Moved) but I want to be able to detect a fast flick or finger ...
Brandon's user avatar
1 vote
0 answers
1k views

I'm using free joystick pack form asset store and in scene have two cameras (first person and third person). Switching cameras with toggle. Game starts with first person camera. Moving with fixed ...
Nurlan Shukurov's user avatar
0 votes
1 answer
1k views

I want to displace a button along with the screen position that is pressing on it. However, having multiple touches at the same time results in wanky behaviour. So I want to limit the button's ...
Venay's user avatar
  • 207
0 votes
1 answer
1k views

I know this question has been asked a lot of times, and I have tried the solutions that were provided and I still have no valuable result, so I thought...maybe a new set of eyes could help. I have a ...
Gozmetaiemax's user avatar
0 votes
1 answer
804 views

I made a simple game in unity where the user taps their phone screen and the player jumps up. When I test it on my phone (not sure if this matters but it's a Samsung s9+), I tap the screen and usually ...
Matheson's user avatar
0 votes
1 answer
374 views

I am trying to make my character jump when the player taps the screen. At the moment it jumps when I press space bar, but how can I change the code to make him jump when the screen is tapped? This ...
Usmaan Mahmood's user avatar
0 votes
1 answer
289 views

The input is pinch/drag for camera movement, which modifies a matrix to scale/translate, and sent to a vertex shader. It's working, but ugly. What's the proper way to do it? I've noticed: ...
hyperpallium's user avatar
0 votes
2 answers
136 views

I'm working on this game in Unity 2D where the user swipes to make a game object move in the direction that the user swiped in. Currently, when the user swipes it takes about a quarter of a second for ...
Taylor Reich's user avatar
0 votes
0 answers
1k views

I have a Unity C# script that uses the mouse to rotate/pan/zoom a camera around a scene with a main focal point (PC Build). It works very well for me, but I need to convert it for a kiosk touch screen ...
Alex's user avatar
  • 25
1 vote
1 answer
438 views

I am creating a circular Joystick like setup in Unity. Played a lot with it in different ways but I don't get the desired results. ...
Maseed's user avatar
  • 121
0 votes
0 answers
523 views

I want to make a game similar to "Dancing HOP: Tiles Ball EDM Rush" I am trying to make an object jump from point a(z=0) to b(z=10) to c(z=20) and so on, keeping the z axis distance constant for each ...
next age's user avatar
0 votes
0 answers
51 views

I saw this awesome tutorial that is related to Grid-based Movement in Godot What I want is to add touch screen support for this kind of movement i.e. with virtual on screen joystick or gestures. How ...
yossico's user avatar
  • 101
0 votes
1 answer
412 views

i am building a camera rotation script like in fps. Everything is setup and working except that camera rotation resets to zero at the start of game which i dont want. This is the camera rotation i ...
Anmol Deep's user avatar
0 votes
1 answer
309 views

I am using TouchScript (v9.0) with Unity (2018.2.14f1) and am struggling with getting the Flicked gesture event to fire. I created an empty game object with a few ...
Paul's user avatar
  • 121
0 votes
1 answer
166 views

So I was making an android game in unity3d. I wrote a script to draw straight lines with touch what I do is I first create a gameobject named temp and add line renderer to it and give the line ...
Wasim Ahmad's user avatar
1 vote
1 answer
133 views

I have a Touch-Input device which is linked to my Unity Program and a VR Device. The Touch-Input device which is bolted somewhere BUT the position can be changed. I can get the "2D Coordinates" X / ...
OC_RaizW's user avatar
  • 1,480
0 votes
1 answer
2k views

In my scene, I have a bouncing ball that collides with a cube. On each collision the ball returns to the same height. How can I get the ball to smoothly move along the x-axis by dragging my finger ...
Tiptech's user avatar
1 vote
1 answer
1k views

I know how to place the items you see in the picture, my problem is how do I move them? How do I know if the player is swiping right or left? I made the items with a ...
Rubbish Ambush's user avatar
0 votes
1 answer
148 views

I currently have a working controller with left and right but I want to set the velocity of the character to 0/Stop when 2 or more touches are detected. This is my current working code but I want to ...
DeeMastah's user avatar
0 votes
1 answer
908 views

I want to detect if my GameObject (Vector3 Point) being dragged by the player's finger is moving in a circular fashion. I thought I could save the last 5 points ...
OC_RaizW's user avatar
  • 1,480
1 vote
2 answers
815 views

I am encountering a peculiar problem when updating a piece of code that translates my gameobject left and right based on mobile touch input. To provide context, the platform upon which the gameobject,...
user avatar
0 votes
0 answers
386 views

I have the following C# code, but it leaves me with two problems: ...
user avatar
0 votes
2 answers
464 views

I am trying to make my Desktop game playable on IOS. I have a Button.cs class, which has this code in it: ...
Philippe's user avatar
1 vote
1 answer
401 views

I've created 2 buttons for movement in my game but when those button are being pressed, the character gets basically thrown away and by pressing only once the movement it's continuous and i don't ...
Tr Sorin's user avatar
0 votes
1 answer
319 views

I want to make object stopped when it hit collider of another object. But it doesn't stop. How can I fix this? - Unity my code is: ...
dogankirnaz's user avatar
0 votes
1 answer
178 views

I am working on Bowlingball game. And when I move the ball left and right by touching or clicking the camera moves, but it also makes ball keeps moving in the same direction even though I just moved ...
Abhinay Singh Negi's user avatar
1 vote
0 answers
158 views

I am making a simple game of mine mobile-friendly. The goal is to: Make character walk if a touchstart event is sensed on right half of screen. Stop character if a touchend event is sensed on the ...
JGoss's user avatar
  • 11
-1 votes
1 answer
297 views

I am not going to show any script, which may make it complicated. In unity ,when I used the cross platform input manager for touch buttons, the raw axis values returned are in small fractions(like 0....
S.Srihari's user avatar
1 vote
2 answers
1k views

NOTE: See bottom of the question as I have managed to use a workaround which works to press the two buttons at once on Android (thanks to Douglas Potestas help) I've struggled with this in the past ...
Big T Larrity's user avatar
1 vote
0 answers
1k views

OK so I have this code working and the methods are being called at the times I'd expected (ie. when the mouse hovers over the button and stops hovering over it) But when I test it on an Android ...
Big T Larrity's user avatar
0 votes
1 answer
5k views

OK so I have used the Unity Event Trigger many times to check for on-screen button presses for Android games. One example I have made many times is a left and right arrow button, which moves the ...
Big T Larrity's user avatar
2 votes
3 answers
9k views

I am trying to create a 3d game in unity. I have a cube in unity and I want it to move left or right on swipe . It should move to a distance till where user swipe or take their finger off of a screen. ...
Hemlata's user avatar
  • 79
0 votes
0 answers
1k views

Ok so I have followed through about 5 tutorials and read over 5 separate forum discussions on the above method. For some reason in my game, the touch the UI button does occur, but the touch is also ...
Big T Larrity's user avatar