Translation of user input (via mouse, keyboard, gamepad, touchpad or other hardware interface) into in-game actions
11
votes
3answers
565 views
Why is forward=down mouse orientation commonly called “inverted”?
If you look at 3D games that allow you to control the camera using the mouse--most notably first-person and third-person shooter style games--you'll usually find two specific details:
By default, ...
8
votes
4answers
969 views
Camera Control Techniques in Games
I am an MPhil student in Computing Science working on the problem of camera control in graphics. Though the literature of camera control dates back to the end of 1980s, the majority of them (up to my ...
7
votes
2answers
1k views
How would I move a character In an RPG with Bullet Physics/Ogre3D?
lately I have been having problems with moving my character in my Ogre3D game. Basically I am moving the character with bullet's RigidBody->translate() function, but when doing so and bumping into ...
5
votes
6answers
920 views
How do I identify mouse clicks versus mouse down in games?
What is the most common way of handling mouse clicks in games?
Given that all you have in way of detecting input from the mouse is whether a button is up or down.
I currently just rely on the mouse ...
4
votes
2answers
687 views
Execute code at specific intervals, only once?
I am having an issue with XNA, where I want to execute some code in my Update method, but only at a given interval, and only once. I would like to avoid booleans to check if I've already called it ...
4
votes
3answers
393 views
Accelerometer or on screen controls for mobile UI in 3D games?
I can think of several 2D games which use the Accelerometer successfully, but in my experience as a player, character control in a 3D environment tends to be frustrating. Mostly because a 3D ...
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
1answer
197 views
How to handle walking into walls?
Say we have a player who's walking around in first person perspective. He would like to walk forward, but that would put him inside an object, and that's no good.
Right now what I do is... ...
3
votes
2answers
143 views
What is a good way to test demand for a new game platform?
I'm working on a game platform that turns your iPhone, android or iPad into a steering wheel, for racing games (like need for speed and dirt 3) and flight simulators for example.
I'd love to figure ...
2
votes
2answers
113 views
Smoother controls
I am trying to move my background left if the user hits the right key. and right if the user hits the left key, so that it will look like the player is moving.
The problem is that whenever I hold the ...
2
votes
2answers
401 views
How do I handle user input with good class structure/architecture for an Android game?
How do I handle user input having "good" class structure and following normal game architecture*?(see below). At first I didn't think this question was Android specific, although, after seeing a great ...
1
vote
2answers
229 views
What are some techniques used for mouse tracking, with a bit of “emulated lag”?
I am trying to implement a system, where the cursor (in my case the player's avatar) is always about 1.5 seconds (a configurable interval) behind where the mouse actually is. If I change the cursor's ...
1
vote
4answers
291 views
Mahjong solitaire - navigating between open tiles
I am looking for an algorithm to help me navigate between 'open' tiles in a Mahjong solitaire game. The game is to be played on a limited device with only left-right-up-down buttons and I want to ...
1
vote
0answers
56 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 ...
1
vote
1answer
117 views
Handling multiple pressed keys with KeyListeners
I'm making a game Applet with Java that uses KeyListeners to control a paddle (for a game like Breakout/Pong). My basic implementation goes like this:
public void keyPressed(KeyEvent e) {
switch ...