Tagged Questions
3
votes
1answer
127 views
Weird stuttering with fixed-timestep, variable-framerate game loop
I've been trying to set up fixed-timestep loop for my game, using the technique from here. I have no need for the interpolation step as I intend to run the logic at or above vsync speed.
Here is a ...
1
vote
1answer
217 views
XNA - moving the 3rd person camera
I'm having following problem:
Can't set my camera to follow object from behind and rotate when I use left/right arrow. I've tried different tutorial and examples but it still doesn't work for me. ...
-1
votes
1answer
164 views
2D Game Help In XNA
I'm making a game in XNA called The Adventure Of The Very Hairy Princess Fairy. The game is a "Sidescroller/Platformer" like mario but there is a problem. How do I attach a weapon to the player ...
7
votes
2answers
736 views
Managing game state / 'what to update' within an XNA game 'screen'
I'm trying to figure out how best to manage state within my game screens - please bare with me though! At the moment I'm using a heavily modified version of the fantastic game state management example ...
6
votes
1answer
815 views
How to chain actions/animations together and delay their execution?
I'm trying to build a simple game with a number of screens - 'TitleScreen', 'LoadingScreen', 'PlayScreen', 'HighScoreScreen' - each of which has it's own draw & update logic methods, sprites, ...
3
votes
3answers
4k views
XNA game loop Update and Draw
I'm confused on how the game's methods are called and when.
So I read that the sequence is:
Initialize
LoadContent
Update
Draw
UnloadContent
Where 3 and 4 are the game loop, so after Update is ...
4
votes
1answer
615 views
XNA GameTime before first Update
Using XNA, is it possible to access the GameTime object before Update is called for the first time?
Can it be used in the game constructor, Initialize or LoadContent methods?
1
vote
1answer
492 views
Tetris Movement - Implementation
I'm developing a Tetris clone and working on the input at the moment.
When I was prototyping, movement was triggered by releasing a directional key. However, in most Tetris games I've played the ...
3
votes
2answers
550 views
Designing the Update system (read very basic game engine) for an XNA game
I am trying to determine the best way to implement the "update" system or engine for a simple XNA game.
Description of situation
I have a few classes, lets call them
Player [will be an ...