Tagged Questions

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

0
votes
1answer
25 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 ...
0
votes
1answer
84 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
25 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
69 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
816 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 ...
0
votes
1answer
188 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
130 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
246 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
59 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
108 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
77 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
136 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
48 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
378 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
358 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
521 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 ...
0
votes
0answers
974 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
181 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
382 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
283 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
327 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 ...
0
votes
1answer
185 views

How to use UILongPressGestureRecognizer with sprite drag & wait?

May be it's asked before also but I couldn't find any good answer. Please tell me how this can be implemented with UILongPressGestureRecognizer? A user drags a sprite from X location to Y location. ...
1
vote
0answers
121 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
604 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
116 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 ...
-1
votes
1answer
203 views

Issues with touch buttons in XNA (Release state to be precise)

I am trying to make touch buttons in WP8 with all the states (Pressed, Released, Moved), but the TouchLocationState.Released is not working. Here's my code: Class variables: bool touching = false; ...
0
votes
1answer
944 views

How to fix Monogame WP8 Touch Position bug?

Normally below code will result in X:Infinity, Y:Infinity TouchCollection touchState = TouchPanel.GetState(); foreach (TouchLocation t in touchState) { if (t.State == TouchLocationState.Pressed) ...
2
votes
1answer
435 views

Odd Android touch event problem

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 ...
1
vote
3answers
2k views

How to create / draw clickable object (such as Button in WinForm) in XNA WP8?

I am developing a 2D (No 3D in every aspect) Windows Phone 8 turn based tactical games for my college project. I use Monogame. I want to draw an object similar to Button in windows form, that if the ...
1
vote
1answer
471 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 case ...
1
vote
1answer
1k 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 ...
1
vote
1answer
105 views

Where to put input detector?

So below is the usual XNA Game Component override method. If I want to add a touch input detector (lets say, I want to draw a rectangle under touched screen area), where do I put it and how? Googled ...
1
vote
0answers
193 views

Moving an object (pong paddle) along the x,y axis in 3d-space with mouse/touch

First of all: Sorry, my English isn't quiet good, I'm very new in 3D and I'am using JMonkeyEngine. What I would like to do?: A 3d pong game and I want to control the paddle with the mousecursor ...
0
votes
0answers
84 views

Make a layer over an image and adjust its co-ordinates by touch

I need to make a layer over an image and adjust the layer to fit to image and get its co-ordinates of the layer. I need to adjust the layer by touch and pinch. The sample image is as below. I need ...
2
votes
1answer
87 views

Augment an existing game with touch gestures

I want to enhance Homeworld 2 gameplay with touch gestures. The game is running on Windows. So, two questions: Is it possible to wrap the game with a program that would capture touch gestures, ...
7
votes
3answers
180 views

Where to show user shot's power on touch screen?

I want to show user shot power in standart way (the more user holds finger on the screen the stronger is shot) Where is the best place to show this icon on touch screen(when I use mouse it's better ...
1
vote
1answer
168 views

Application design for specific points on image

Hi guys I am starting a simple hobby app in Unity, its a 2D app, which have some alphabets like A,B,C..Z (images) . There ll be specific paths where user touch one by one to complete drawing the ...
3
votes
1answer
361 views

How to emulate knob turning, based on x/y movement?

I'm doing a game where one component is that you turn a knob. I'm having trouble getting good "knob behavior". I know the current touch/mouse X,Y location, and I keep track of the previous X,Y ...
0
votes
2answers
182 views

How do I achieve one touch one shot for WP7 game?

I want to be able to have a sprite shoot in a game for WP7. What I have at the moment is that as long as the shoot button is held down the sprite constantly shoots. How do I sort it that only one ...
12
votes
5answers
1k 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 ...
-4
votes
2answers
9k views

Detect touch for android…for unity 3d [closed]

i am trying to detect the touch on android and is it possible to have a same function with touch which can work same as OnMouseUp() function
4
votes
3answers
14k views

How to move gameobject with touch on Android

I'm trying to make a game where you control a character via touch on Android devices. The player will have two degrees of movement. When you touch the touch screen and move your finger, the game ...
1
vote
1answer
496 views

GestureListener's fling method doesn't get called

I'm using SimpleGestureDetector from the libgdx-users Wiki as my InputProcessor. I set it in the created() method: Gdx.input.setInputProcess(new SimpleDirectionGestureDetector(charController)); ...
1
vote
1answer
285 views

Precise Touch Screen Dragging Issue: Trouble Aligning with the Finger due to Different Screen Resolution

Please, I need your help. I'm trying to make a game that will drag-n-drop a sprite/image while my finger follows precisely with the image without being offset. When I'm trying on a 900x1280 (in X ...
0
votes
1answer
292 views

Drag Gestures - fractional delta values

I have an issue with objects moving roughly twice as far as expected when dragging them. I am comparing my application to the standard TouchGestureSample sample from MSDN. For some reason in my ...
0
votes
1answer
202 views

Drawing an arrow cursor on user dragging in XNA/MonoGame

I am writing a touch enabled game in MonoGame (XNA-like API) and would like to display a an arrow 'cursor' as user is making a drag gesture from point A to point B. I am not sure on how to correctly ...
0
votes
1answer
192 views

Building a touch event driven UI from scratch: what algorithms or data types? [closed]

I have a touch display. As input I can receive the coordinates and how many touch points are in use, basically I just get an X,Y couple for every touch event/activated point at a customizable rate. I ...
1
vote
1answer
852 views

Rotate triangle so that its tip points in the direction of the point on the screen that we last touched

OpenGL ES - Android. Hello all, I am unable to rotate the triangle accordingly in such a way that its tip always points to my finger. What i did : Constructed a triangle in by GL.GL_TRIANGLES. Added ...
1
vote
1answer
837 views

openGL ES - change the render mode from RENDERMODE_WHEN_DIRTY to RENDERMODE_CONTINUOUSLY on touch [closed]

i want to change the rendermode from RENDERMODE_WHEN_DIRTY to RENDERMODE_CONTINUOUSLY when i touch the screen. WHAT i Need : Initially the object should be stationary. after touching the screen, it ...
6
votes
2answers
917 views

android multitouch problem

Im aware that there a a couple of posts on this matter, but Ive tried all of them and none of them gets rid of my problem. Im starting to get close to the end of my game so I bought a cabel to try it ...