An input method used in games, thich is generally reffered to input used by mobile phones and tablet-type computers.
0
votes
0answers
14 views
How to get sprites react to touches in cocos2d-android
i have 1 gun when tap on any area on the screen bullets fires out, but according to my requirement there are 3 guns(sprites) when touched on any of the sprites bullets must fire up, when googled i ...
0
votes
1answer
71 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 ...
0
votes
0answers
44 views
Android: Switch(swipe) places on two images [closed]
I have two images next to each other and I want to switch their places with a swipe. I made collision detection but I don't now how to swipe and change their positions.
I'm really new at this, so ...
1
vote
0answers
65 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
27 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
62 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, ...
6
votes
3answers
153 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
140 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
136 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
92 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 ...
10
votes
5answers
290 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 ...
-5
votes
2answers
624 views
Detect touch for android…for unity 3d
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
3
votes
1answer
955 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 ...
0
votes
0answers
68 views
Touch responsiveness on iPod
0 down vote favorite
I wrote a simple code that makes an object follow moursor or touch input and works so fast and responsive on editor but when I deploy it on my iPod, it has a slight delay. If you ...
1
vote
1answer
210 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
172 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
141 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
148 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
126 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
458 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
335 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 ...
5
votes
2answers
523 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 ...
0
votes
1answer
638 views
Android Touch Event Collision Detection [closed]
I'm relatively new to both Java and Android, so hopefully the problem I'm having is stemming from something pretty minor that I've overlooked.
I've got a (very early stage) game that I've started ...
0
votes
1answer
214 views
Touching a CGRect
In my cocos2d app I am trying to determine when a CCSprite is touched
Here is what I have:
-(BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event{
NSMutableArray *targetsToDelete = ...
1
vote
2answers
670 views
Basic game architechture best practices in Cocos2D on iOS
Consider the following simple game: 20 squares floating around an iPhone's screen. Tapping a square causes that square to disappear.
What's the "best practices" way to set this up in Cocos2D?
Here's ...
2
votes
2answers
2k 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 ...
0
votes
1answer
2k views
How to know if an actor is touched in libgdx?
I am using "Gdx.input.isTouched()" in the render method of my Screen method, to know where is touched, but when the touch is dragged in the screen, it also activates the events i want only when an ...
4
votes
1answer
284 views
Do you prototype mobile touch games on the desktop with mouse input? What tricks do you use?
So I've been prototyping games that if completed would be mobile apps most likely.
But, I'm developing them in XNA on the desktop because its the environment I like the most.
I know I could target ...
7
votes
2answers
2k views
How to differentiate a tap from a drag
I'm creating an app and I'm trying to make it so I can drag a sprite (with a second sprite on top) around the screen, but if I just tap the sprite some other method should get called.
I got the ...
0
votes
1answer
355 views
Where does touch control logic go?
I'm creating a game (or app, depending on how you would define it...) where I'm moving objects (with sprites) on the screen.
I've got this to half-work in both scenarios, but I can't seem to get it ...
0
votes
0answers
206 views
detect sprites by tag in parallax
I've created 3 layers and added to a parallax node in my game play scene;
I don't know why it crashes when I'm enabling touch, self.isTouchEnabled = YES; on one of my layers; I want that touch to be ...
1
vote
2answers
134 views
What is the best way to funnel input to the correct entities?
I have an input pipeline that stores InputObjects into a queue, which I then iterate through once every frame.
while(!inputQueue.isEmpty())
{
InputObject inp = inputQueue.pop();
boolean ...
1
vote
1answer
462 views
How can I scroll sprites when swiping using Cocos2D?
I'm adding 3 sprites (layers) to CCParallaxNode:
BGLayer = [CCSprite spriteWithFile:@"Layer.png"];
[_backgroundNode
addChild:BGLayer
z:2
parallaxRatio:layer1Speed
...
4
votes
1answer
6k views
Examples of Android Joystick Controls?
I can't seem to find any well executed code examples for Android joystick controls.
Whatever it may be, algorithms, pseudo code, actual code examples, strategies, or anything to assist with the ...
3
votes
3answers
408 views
Spot the difference game design help
I'm thinking of making a spot the difference game. But immediately I stumbled over a problem. I'm thinking of storing a "difference area" in the form of a x,y coordinate. However, because on a ...
5
votes
3answers
476 views
What's the best control scheme for an arena shooter on a touchscreen phone?
I am developing Android an game. It's going to be a top-down shooter with stealth features. I am now thinking about how to the make controls. Most top-down games are now twin stick (joystick on the ...
1
vote
1answer
509 views
Retrieving latest touch to interrupt another
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 ...
6
votes
2answers
458 views
Calculating and detecting curves
How can I detect the 'steepness' of a curve? For example, if the user swipes their finger across the screen in a curve, what's the best way of detecting whether the curve is almost a semi-circle, or ...
1
vote
1answer
201 views
Trouble with touch events on iPhone
I'm making a simple 2D game for iPhone. Think of the game as a ball on the screen that goes up while the user is touching the screen and falls down when the user stops touching the screen.
The ball ...
5
votes
4answers
529 views
Optimal touch controls for a twin-stick shoot 'em up?
So we recently launched a shoot 'em up arcade-type game (think Smash TV or I Made a Game with Zombies in It!). You can move in one direction and fire in another, so the ideal control scheme is ...
9
votes
1answer
362 views
Is there a gold standard for touch controls in scrolling shoot-em-ups?
Is there currently a "standard" for touch controls in shooters on platforms such as iPhone or Android? I've noticed that many of them enable auto-fire by default, or control the character via direct ...
11
votes
6answers
4k views
Making (or emulating) a “D-Pad” on a touch-screen; virtual d-pad
With the proliferation of touch based devices, many lacking a true D-Pad, I'm wondering if anyone has any resources on how to emulate a D-Pad on a touch screen? I'm specifically interested in XNA ...