Translation of user input (via mouse, keyboard, gamepad, touchpad or other hardware interface) into in-game actions

learn more… | top users | synonyms

1
vote
1answer
788 views

What is the best mechanism for controlling a character in a 2D Android game? [closed]

Im developing a 2D RPG for Android where the character can move up, down, left, and right like in top-down RPGs like Pokemon. What is the best input mechanism to use to control the character? A ...
-1
votes
1answer
716 views

Common game controls/ User interface libraries or source code? [closed]

Sorry for the ackward title, but i don't know what to call it exactly. I'm looking for code or libraries that allow easy creation of commonly used user input devices, and code/libs that make gaming ...
10
votes
2answers
10k views

How do I generate projectiles toward the mouse pointer? [duplicate]

I'm making a top-down space shooter where the player controls a ship and can aim and shoot using the mouse cursor. How can I fire bullets from the ship at the angle from the ship to the mouse cursor? ...
4
votes
2answers
1k 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 ...
9
votes
4answers
3k 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 ...
5
votes
3answers
467 views

Accelerometer or on screen controls for mobile UI in 3D games? [closed]

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 ...
1
vote
2answers
242 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
341 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 ...