0
votes
1answer
48 views

3D Translations relative to 3D Rotations

I'm trying to program camera movement to be relative to camera rotation. (Forward is always forward, regardless of pitch, yaw, and roll) I want to be able to move forward, backward, left, right, up, ...
1
vote
2answers
50 views

Vertical Camera Movement in a 2D Platformer

I would like to ask about how vertical camera movement should be handled in a platformer in which the player changes his Y position frequently. For the past two days I've tried to adjust the camera ...
0
votes
1answer
269 views

How can I make my player move in the direction the camera faces?

I have a 3rd person camera which can rotate around the player. My problem is that wherever camera is facing, players forward is always the same direction. For example when camera is facing the right ...
0
votes
2answers
69 views

Why does my side-scroller character move in the wrong direction?

I'm trying to understand why my rectangle moves in the opposite direction I want it to. I have a float for translation: glTranslatef(translate_x, 0, 0); if ...
0
votes
1answer
689 views

How to clamp player movement correctly?

I have a 2D space shooter game. I looked up some questions from unity community and came across this solution. Below is the code for my player's movement: //horizontal <- || -horizontal -> ...
-1
votes
2answers
93 views

Camera movement bug

In my game, the player's movement script and the camera's movement script are separate. Both of them use "W", "A", "S", and "D" to move. The camera can also use "Q" and "E" to rotate around the ...
6
votes
2answers
553 views

How do I keep my character centred on screen?

I am making a game similar to Legend of Zelda: Link to the Past (top-down 2D action-adventure). I want the character to stay centred on the screen when he moves. Currently, whenever the player wants ...
1
vote
1answer
510 views

How do I make camera follow the player within some bounds?

I am creating a simple ambient/explorer platformer. Because I want the player to only be able to see a new area once they have reached it, I decided to split up the world in rooms. To not make things ...
0
votes
1answer
700 views

XNA - move camera over tilemap

I am trying to build a game based on Advance Wars in XNA. I am so far where the tiles are placed on the screen, except here starts my problem. During the game, I ofcourse want to move the camera ...
6
votes
1answer
323 views

Swaying Camera when Walking

You can see the effect in many games. The camera sways or wiggles a bit while walking to make the movement feel more realistic. I have implemented a camera in my game. (Who'd have thunk it?) So is ...
1
vote
2answers
246 views

Matrix camera, movement concept

Someone told me that the movement concept in my 2D game is bad. When left or right arrow is pressed I'm scrolling the background which makes you feel that player avatar is moving (the avatar's ...
2
votes
2answers
279 views

How does the Wii controller work?

I've never played the Wii or Kinect, but to my understanding, the Wii captures user movement with 4 cameras and translates them to controls. How does this work? Has Nintendo published anything on ...
5
votes
1answer
591 views

How can I implement view wobble when my player is running?

I'm creating a FPS in XNA. So far its' going great. What I'm looking at doing is replicating the camera movements that you see in Modern Warfare. So, if you are walking the camera stays pretty ...
-1
votes
3answers
423 views

Move camera on X and Z only

How would you implement movement on a camera in order to always move it on X and Z coordinates, and if the camera has pitch yaw or roll it still moves only in those coordinates and doesn't fly up?
6
votes
4answers
1k views

Equation for bouncing graph?

I basically want my camera in 3D move automatically. Currently, I have linear movement which is rather dumb, so I'd like to do a bouncing movement. However, what is a good equation for bouncing? I ...