Questions tagged [touch]
An input method used in games; this generally refers to the input used by mobile phones and tablet-type computers.
183 questions
0
votes
1
answer
65
views
Climbing only works with ApplyRootMotion, but this interferes with swiping to jump or slide
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 ...
1
vote
0
answers
218
views
(UE 5.4.2) (Enhanced Input System) Touch Pressed trigger fires only once
As you can see on image I have three Control Bindings
Space Bar - works perfectly on desktop. I can press several times ...
0
votes
1
answer
88
views
Chain cutting swipe input skips over chains
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 ...
0
votes
1
answer
55
views
Sawblade's spin stops or jitters when swiping to steer it
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 ...
0
votes
1
answer
164
views
Pass input event from stage to added actor
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 ...
1
vote
0
answers
2k
views
How to hide the TouchScreenKeyboard's input field in Unity on Android?
Unity for Android suggests that you can hide the TouchScreenKeyboard's input field with the command TouchScreenKeyboard.hideInput. Superficially this looks like it ...
0
votes
1
answer
326
views
How to detect long press on object using Unity EnhancedTouch?
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 ...
0
votes
1
answer
2k
views
How to check if finger is touching the screen using the Unity input system?
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 ...
3
votes
0
answers
1k
views
What is causing my touchstart event to end while I'm still touching the screen, and how can I fix that?
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 ...
0
votes
0
answers
351
views
How do I write a script for Unity that allows a gameobject to be scaled using pinch & zoom touch controls?
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 ...
1
vote
0
answers
148
views
Touch phase is moved when touch pressure changed
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 ...
0
votes
1
answer
86
views
Unpausing a game when a TouchScreenButton node is released
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 ...
1
vote
2
answers
381
views
How to make the character move along the axis using touch?
I have the following code it works, but I don't know how it works.
This is the code I found:
...
0
votes
2
answers
258
views
Touch control pan 3D map
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 ...
0
votes
0
answers
362
views
Unity 2D Player Shoots at my joystick position
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 ...