Questions tagged [multitouch]

Questions about using multitouch controls in games.

Filter by
Sorted by
Tagged with
0 votes
1 answer
144 views

Two players using touch control simultaneously

I am working on a game like soccer star and I made a controller using YouTube and stuff. I added two players in the same scene and put this script on them. But when I play with player 1, then player 2 ...
Nomi's user avatar
  • 33
0 votes
0 answers
171 views

Pinch Gesture for Function Other than Zooming- Unity

I'm working on a game in which I want to pinch outwards on a character, which causes the character to split into 2 smaller copies of itself. The method I'm thinking about using is to have the "...
B-ROD's user avatar
  • 1
1 vote
1 answer
106 views

reading input from multiple mice in QB64 in Windows 10?

I am looking to write a non-network multiplayer game for Windows 10 with QB64 that accepts input from 2 or more USB mice plugged into the system. Like a simple Pong game where additional players plug ...
madscijr's user avatar
0 votes
0 answers
83 views

unity : How to change the default behaviour of the touchpad/trackpad in laptop?

I'm using unity on my laptop. Normally, i can customize my touchpad in most of 3d app but in unity i can't find a way to do it ? is it possible to customize it at user level without hard coding it ? I ...
andio's user avatar
  • 155
0 votes
0 answers
648 views

How to move 3D Object With Touch Dragging Finger By the screen In android Unity Game

My Code is As Followed: ...
Yash Kute's user avatar
0 votes
0 answers
312 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 ...
Anees's user avatar
  • 1
0 votes
1 answer
498 views

How Do I Separate Dragging My Finger On Joystick And Swiping?

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
241 views

Unity 2D - How can I shoot, by swiping up or down, whilst aiming?

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
0 votes
0 answers
934 views

Unity 2019.2.5: Convert Mouse Rotate/Pan/Zoom camera to touch

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

How do I set something when 2 or more touches are pressed?

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
286 views

How can I track two fingers?

Im trying to make make game which is intended to be played with the phone in landscape mode, and the player uses their thumbs to control the movement. The game controls look like this: On the left ...
tacofisher's user avatar
0 votes
0 answers
321 views

Using Windows 10 Multi-Touch Functionality In Gamemaker: Studio

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
265 views

Handling multiple touches libgdx GestureListener

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
1 answer
80 views

Multi touch gesture terminology

What term would you use to describe the type of touch gesture whereby the user touches a point on screen, and an object moves (ease-out) to the location where the finger is touching the screen? Can ...
Vyas's user avatar
  • 101
1 vote
0 answers
24 views

Calculating a smooth velocity of interaction touches

I have a touch game and it would be beneficial to be able to know the "velocity" of each touch on the screen. Let me explain. Right now I am already subtracting current touch position from previous ...
J.Doe's user avatar
  • 289
4 votes
1 answer
685 views

How do I detect if two sprites are being touched at the same time?

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
1 vote
0 answers
76 views

Android Multitouch Implementation

I'm trying to implement multitouch in my game but I'm running into problems. Basically all I want is for the player to run and shoot or jump at the same time. I've followed a multitouch tutorial and ...
Macharia's user avatar
1 vote
3 answers
239 views

undo touchdown in LibGDX with scene2D

i'm making a game in libgdx and i have a question. I have a Button from scene2d. If there is a touchDown event on this button, i want the touchUp event only inside my button. Now if i touchDown a ...
flagDiZero's user avatar
2 votes
1 answer
435 views

unable to use two gestures simultaneously

I have a class implementing gesture listener in libgdx. I want to use longpress gesture in one half of the screen and fling gesture in other part of the screen simultaneously. public class ...
knarola's user avatar
  • 63
6 votes
3 answers
2k views

Counting multiple touches using Cocos2dx 3.2

I'm trying to count the number of active touches in screen in order to perform an an action in case that there are two touches: ...
DGomez's user avatar
  • 133
2 votes
2 answers
164 views

Touch drawing in the dirt

Which approach should I take for creating a game/app where the player, looking above the ground "canvas", would be able to "move" dirt (i.e. soil, or generally powder) around using fingers? I.e. ...
Lou's user avatar
  • 133
1 vote
1 answer
584 views

cocos2d ccTouchEnded: Removing a Touch

These are my ccTouch__ methods. Note that I am using the singular form of the functions (ie. ccTouchBegan v. ccTouchesBegan (don't know if that has anything to do with it, but it can't hurt to point ...
Peteyslatts's user avatar
2 votes
2 answers
554 views

Ambiguation between multitouch geistures tap and free drag in Windows Phone 8 Emulator (Monogame)

I am making a 2d tile based tactic game. I want the map to be slided around (because it's bigger than the screen) with FreeDrag (It's perfectly done, the map can moved around, that's not the problem). ...
Moses Aprico's user avatar
2 votes
2 answers
1k views

Odd Android touch event problem (Nexus 10)

Overview When testing my game I came across a bizarre problem with my touch controls. Note this isn't related to multi-touch as I completely removed my ACTION_POINTER_UP and ACTION_POINTER_DOWN ...
BungleBonce's user avatar
  • 1,927
1 vote
1 answer
2k views

Android Action_Move when moving between specific screen areas

OK so I know how to iterate through the different pointers that are currently touching the screen so I know what the coordinates are of these pointers using the following: Code snippet ...
BungleBonce's user avatar
  • 1,927
4 votes
3 answers
7k views

Android multitouch: How to detect movement on non-primary pointer / finger?

How does one go about detecting a secondary/non-primary finger moving? There is: ACTION_DOWN and ACTION_UP to detect a primary finger pressing the screen / leaving the screen ACTION_POINTER_DOWN ...
BungleBonce's user avatar
  • 1,927
5 votes
2 answers
344 views

What perspective is suitable for sharing a screen across a table?

I'm thinking about a 2 player 2D arena game for a mobile phone, but I have the obvious problem of gripping. To avoid this, I think it shouldn't be a problem to play one in front of the other with ...
MLProgrammer-CiM's user avatar
1 vote
0 answers
431 views

Touch Gesture Map Movement

I really dig the way that the map is moved in Clash of Clans (https://itunes.apple.com/ca/app/clash-of-clans/id529479190?mt=8)... I can recognize the pinch and finger movement needed for the zooming ...
antman's user avatar
  • 11
2 votes
0 answers
1k views

3 Button Multi-touch for Android

OK, my multi-touch system was somewhat convoluted, but was working perfectly OK until I tried to run my game on my Nexus 10 which is running Jellybean. Crashing all over the place! So I removed my ...
BungleBonce's user avatar
  • 1,927
16 votes
5 answers
3k views

What is a suitable input method to use for a 2D platformer on a touch device?

I am creating a 2d platformer game like Super Meat Boy in which precision of movement of my lead character matters. I am using libgdx. The keyboard controls on the PC work precisely, but when it comes ...
Rahul Verma's user avatar
3 votes
2 answers
2k views

Detect multitouch (two fingers touch) on a sprite to apply pinch zoom behaviour

I am using andengine, want to move, zoom and rotate multiple sprites individually on a scene. I have achieved "move" but for pinch zoom i am unable to get the event to two fingers' touch. Below is the ...
Tahreem's user avatar
  • 31
9 votes
5 answers
4k views

returning correct multiTouch id

I've spent countless hours on reading tutorials and looking at every question related to multiTouch from here and Stackoverflow. But I just cannot figure out how to do this correctly. I use a loop to ...
4 votes
2 answers
7k views

On screen controller for libgdx games?

Does anyone know a better controller for 2D Games than a virtual on screen joystick? The pros of the joystick are: Easy to implement for developers Familiar interface for users But there is a huge ...
Felix's user avatar
  • 43
5 votes
1 answer
5k views

libGDX Multitouch Controls

Has anyone had any trouble implementing multitouch on-screen controls in libGDX, such as multiple joysticks? I've tried and I can't seem to get libGDX to play nice with multitouch/multiple pointers on ...
Alex_Hyzer_Kenoyer's user avatar
2 votes
1 answer
691 views

How can I cause the latest touch event to interrupt a prior event in Cocos2D?

In Cocos2D for iPhone, I want the latest touch event to interrupt another and ignore the last touch. Let me know if I need to elaborate more, but basically my game consists of a lot of finger dragging,...
exactspace's user avatar
2 votes
3 answers
6k views

Understanding MotionEvent to implement a virtual DPad and Buttons on Android (Multitouch)

I'm trying to implement a virtual DPad in android, but I'm still very confused about how do I keep track of each trouch point, from the moment it is pressed, till it is released. In my code, I test ...
Fabio Gomes's user avatar
6 votes
2 answers
1k views

Are there any game engines in C# or Java that are cross-platform and support multitouch input? [closed]

I'm looking for game engines (particularly 2D) that can run/create games for Windows, Mac, and Linux, and support multitouch inputs and gestures. I'm able to find many that meet the first two criteria,...
ThatsGobbles's user avatar
5 votes
3 answers
5k views

Tracking Multiple Touches using Hash codes in Cocos2d for iPhone

How do you implement a touch hash code and reference it later? I have read about a "hash" code, but I don't understand how to use it. I want to know when two of my Sprites are touched at the same time,...
Mark7777G's user avatar
  • 151
5 votes
5 answers
497 views

Will multi-touch become an important/standard method of input for PC games in the future?

We've seen that multi-touch on smartphones has been wildly successful. On the iPhone, in fact, it's the only tactile input the user can provide! However, I'm wondering how likely it'll be for multi-...