Tagged Questions
3
votes
1answer
47 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:
...
0
votes
0answers
74 views
Shoot Bullet Towards Touch Position : Unity3D
I have one object shooting in x-y plane..,x means horizontal and y means vertical direction.. My bullet is capsule game object with rigidbody component.
Now Whenever i touch on the screen , i want ...
2
votes
1answer
188 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
70 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 ...
2
votes
2answers
146 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
1answer
100 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
185 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 ...
0
votes
0answers
37 views
Time on touch events?
Whats the best way to have a touch even cause an action for a specific period of time or deltaTime?
It seems like it should be simple, but I have tried while and for loops based on int counts for ...
0
votes
0answers
64 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 ...
3
votes
1answer
262 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 ...
-5
votes
2answers
2k 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
2
votes
2answers
3k 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
327 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
526 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
412 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
645 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
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
7k 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 ...
5
votes
3answers
568 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 ...
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 ...