An input method used in games, thich is generally reffered to input used by mobile phones and tablet-type computers.

learn more… | top users | synonyms

31
votes
9answers
6k views

How can I quantify a drawn line's straightness?

I'm working on a game which requires players to draw a line from a point A(x1,y1) to the other point B(x2,y2) on the screen of an Android device. I want to find how well that drawing fits to a ...
0
votes
0answers
27 views

Rotate gameobject on fix X and Y axis with touch

I'm using Unity 5, and I want to rotate an object using touch input. This works: target.transform.Rotate(touchDeltaPosition.x 3.0f,touchDeltaPosition.y 3.0f ,0,Space.World); The problem is it also ...
0
votes
0answers
12 views

Libgdx - How to change GestureListener pan finger sensibility?

I implemented GestureListener in my Overlap2dStage to pan the camera when the player drags its finger over the screen. But I also have some actors that extend InputAdapter to detect when the user ...
0
votes
1answer
46 views

Projectile Shoot three at a time

In my game there is a bird flying and on touch it throws different artifacts projectile downwards. And these artifacts should hit the containers moving right to left on the screen. Now if user keeps ...
0
votes
1answer
70 views

In Unity for Android, how do I create touchable buttons?

I'm making a test game for Android in Unity 5, and I want to add left-right control buttons like the circles below, to move an object left or right. How can I do this? Sorry if this question is ...
0
votes
0answers
39 views

How to make touch events work in a match three type game

In "match three" types of games like Crazy Kitchen, when the user touches an image, he can drag his finger over multiple images and create a change in each image he touches in a single gesture. You ...
1
vote
2answers
51 views

atan2 : inversed result? (angle 180 is on the right side, angle 0 on the left side)

the result of the angle between my touch and the middle,bottom of the screen gives me 180 when the touch is on the right side of the screen, and 0 when it is on the left. I don't understand why... ...
1
vote
2answers
57 views

How do I show a small sprite being dragged by touch?

In my mobile game, users drag shapes across the screen. Think of it as a classic Lines game, where you drag a dot on the field, or a chess game where you drag and drop pieces. The problem is that the ...
0
votes
1answer
38 views

Cocos2dx - Touch not recognized on Android

I'm having trouble with a touch listener not picking up touch events on android, but doing fine in windows (mouse input). I've got a Node listening for touches (not a Layer), but from what I've been ...
0
votes
1answer
68 views

Working out velocity/time based on physical pixels moved

In my game I integrate like so: (Please assume all variables to be declared) sprite.xTimeInSeconds = 5.0; //Time in seconds it should take this object to cross screen sprite.xVelocity = ...
0
votes
2answers
86 views

How to flick gameObject using Touch?

I've been searching for a solution for my problem for a while on the web, but i didn't find anything that work properly What i want to do I have a bouncing ball and I want to let the user flick it ...
1
vote
1answer
151 views

How does Unity input work with touchscreens

I'm trying to make a racing game on android using unity. I want to make a car move forward when I touch an image button like in the picture below. I've already made it work using the keyboard. How ...
0
votes
2answers
67 views

Simple LibGDX Pong game drag player instead of getting x position

I got a working pong game in LibGDX but when I touch the screen the player x automaticly jumps to the coordinates I touched. I wan't my game to detect I touched and then move the player to the ...
0
votes
0answers
31 views

AndEngine: paint in my scene

In my app I want to paint in a scene but I have a problem with primitive elements; I tried to use a "Line" but I can't draw a line with a big size line, so I tried a "Ellipse" but if my color-swipe ...
0
votes
0answers
52 views

Android: ACTION_POINTER_DOWN Called Multiple Times

I hope someone can help me here My code is below and I can't figure out why the ACTION_POINTER_DOWN case is being called multiple times (sometime twice, sometimes 4 times, but always multiple times). ...
0
votes
0answers
49 views

AndEngine: get color or trasparence in a sprite

In my app I want detect when the touch in a sprite in in the trasparence and not, my code class is this: package org.andengine.examples; import android.graphics.Bitmap; import android.util.Log; ...
0
votes
0answers
68 views

Configuring touch input for a mobile game?

I'm trying to configure my game to take touch input from buttons but my scripts don't seem to be working. Here is the script for receiving touch input: using UnityEngine; using System.Collections; ...
1
vote
1answer
4k views

How to detect that user has touched UI canvas in Unity 4.6?

In my 2d game I have a HUD with some buttons on it. To make it I am using new UI system, which was presented in Unity 4.6. When user is touching button, I am running method, which was declared in ...
1
vote
1answer
126 views

LibGDX Touch Delay

So I'm trying to make a game in which you have to tap things fast, but the thing is - after you touch something (the area I chose), it takes like 2 more seconds to register another touch. Now, I think ...
1
vote
1answer
40 views

Libgdx--how to store every single point drawn using touchdragged?

Basically i am trying to detect line collision. The problem is when intersection occurs quickly(touch dragged is done quickly like fling), the collision is not detected. It seems as if 'touch dragged' ...
0
votes
2answers
186 views

What is the best practice for handling touch events on different GameObjects in Unity2D?

First of all I want to describe what I have in my scene. 1. Joystick. 2. Main character that has link to joystick and handles touch events from joystick. 2. Buttons. 3. Other GameObjects that must ...
0
votes
0answers
27 views

TouchCollection positon not matching button position

I am using a TouchCollection of touchlocations to determine if a button has been pressed, However the touchlocation position does not correspond with the button location as I would expect, the touch ...
0
votes
1answer
68 views

How can I cycle through sprites when the player touches some UI element?

if(Input.GetKey("y")){ gameObject.GetComponent<SpriteRenderer>().sprite = Characters[0]; } if(Input.GetKey("u")){ ...
0
votes
2answers
220 views

Card game - creating card Listener

I am making a card game where there are 21 cards on hand and 2 options from where user can draw cards to his hand and throw a card from hand. I am new on game development and I'm following the ...
0
votes
2answers
188 views

Touch sides of tablet, moves that direction

I am making a game where the player flies a balloon through a cavelike structure. I am having trouble making him fly correctly when I try it out on my android tablet, seeing as it requires ...
1
vote
1answer
60 views

Libgdx - gesture dection

I have made a card game, and have two methods that sort the players hand. sortHandBySuit(); sortHandByValue(); I would like one method to be called when the user slides their finger from left to ...
0
votes
1answer
45 views

Implement an action “while” touching event

I'm making a game using Xcode for iOS. This is a segment of code I have that makes the sprite jump up when the screen is tapped: //tap/touch to jump (& play sound) -(void)touchesBegan:(NSSet ...
2
votes
1answer
396 views

Unity 2D detect if swipe goes through an object

I am developing a game in unity with flying arrows that the user tries to deflect by swiping through them (changing their direction). I can get the arrows to move with the swipes, but they move no ...
0
votes
0answers
35 views

how to disable touch in Quintus?

hi i'm new in web games development and trying to build card game using the Quintus game engine i have object called card i can touch and drag it in the screen but i want just to touch and drag it one ...
1
vote
1answer
135 views

Move Particle to touch position on android

I am attempting to make a Particle start moving to the position of my finger on the touch of the screen. I have been using this as the basis so far: public void update() { deltaX *= .9; ...
8
votes
1answer
828 views

How small should touch triggers be at minimum?

Is there a known minimum physical size for reliable touch select triggers, considering only selection (no long-press or drag). From personal experience, I would guess it to be about 5x5 mm (0.2x0.2 ...
1
vote
1answer
582 views

Move a sphere along the swipe?

I am trying to get a sphere curl based on the swipe. I know this has been asked many times, but still it's yearning to be answered. I have managed to add force on the direction of the swipe and it ...
0
votes
0answers
293 views

cocos2d-x .. How to detect which sprites are underneath a touch event

I was wondering what the best solution is in the following scenario: Lots of sprites floating around on screen. A user can touch one sprite and drag to another sprite. Throughout this entire time, I ...
12
votes
3answers
255 views

Player fatigue for tablets?

I'm thinking about making games for tablets. Coming from a PC/console background, I'm keenly aware of the huge differences in the user interfaces, and that I need to design it with the target platform ...
0
votes
0answers
110 views

Unity - Android touch Problem

I've build my game for various platforms using Unity3d 4.3.3. I've tested it on windows, Mac, iOS and android as well. It works perfectly in all the devices except few high and android devices like ...
1
vote
1answer
153 views

Creating a tilemap region of clickable buildings in cocos2d

How do you turn a tilemap (produced by TileD) for cocos2d where I can click on individual items and get a callback? Is it just a case of converting captured touch and finding out where it is on the ...
0
votes
1answer
87 views

my movement is working good on keyboard but on android its not

So basically here is what my movement is like for keys: key down if (keycode == Keys.LEFT) { mishi.getAcceleration().x = -13; } key up if (keycode == Keys.LEFT) { ...
1
vote
0answers
150 views

How can I scroll an HTML table when the player drags near the screen edge? [closed]

I'm trying to make my Word Search game mobile friendly. I want to display a grid of letters on the user's phone. The letters must be big enough that the user can touch them individually. My problem ...
0
votes
1answer
50 views

Concurrent touches not being detected

I have pretty much the same controls on the race example of the engine. A AnalogOnScreenControl and a button defined by a Sprite. The problem is, when I'm using the analog directional, touching the ...
2
votes
2answers
1k views

Adding touch/click event to a bitmap in android

In my android game, there is a surfaceview which has 36 bitmaps drawn on it. I want to change the bitmaps when they are touched. Is there a way implement touch or click event to the bitmaps ? Adding ...
0
votes
1answer
425 views

How do I implement swipe-to-throw in Andengine?

I have a ball sprite and I apply physics to it when the user swipes on it. I'd like the ball to start moving in the direction of the swipe, similarly to how Paper Toss works. How can I do this?
0
votes
0answers
732 views

How to rotate just the object being touched in Unity?

For my first steps in Unity I am just trying to rotate some squares when I touch them. using UnityEngine; using System.Collections; public class testskript2 : MonoBehaviour { // Use this for ...
1
vote
0answers
1k views

Dragging an object by touching on Android

I am trying to move and object by touching it and dragging. I am testing it on my Samsung Galaxy SIII. I have used the following code. For some reason it moves faster than my finger. It should always ...
1
vote
1answer
269 views

How can I use touch input for 3rd-person controls?

I have a 3rd-person controller in my Unity scene, which I can only control with the WASD buttons. But since I plan to make a smartphone game, I wonder how I can change these controls t swipe ...
1
vote
1answer
614 views

Android Swipe In Unity 3D World with AR [closed]

I am working on an AR application using Unity3D and the Vuforia SDK for Android. The way the application works is a when the designated image(a frame marker in our case) is recognized by the camera, a ...
4
votes
1answer
369 views

Keep cube spinning after fling

So I've been trying to get started with game development for Android using Unity3D. For my first project I've made a simple cube that you can spin using touch. For that I have the following code: ...
1
vote
3answers
470 views

Getting different x and y coordinates for touched location on a zoomed view

I'm using Cocos2d for developing a game. I need to be able to pan and zoom when necessary, so for this reason I've added CCLayerPanZoom extension to my project. Recently I've noticed a problem with ...
1
vote
0answers
156 views

UITapGestureRecognizer fast tapping not working [closed]

I have initialized UITapGesture as follows: tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)]; tapGestureRecognizer.numberOfTapsRequired = ...
2
votes
1answer
734 views

How to tell what part of a 3D cube was touched

I am writing a rather simple android game and I am implementing Open GL to draw a 3D cube that spins upon the X, Y and Z axis and I need to know where the user has clicked on the texture of the cube. ...
2
votes
1answer
131 views

How to obtain touch events from a GL Viewport, not the whole screen?

Background I'm implementing viewport resizing in order for my game to maintain the same display ratio on all devices. However, I've found an issue with getting touch events. Basically, if my ...