Tagged Questions
1
vote
1answer
88 views
How do I convert my XNA game to Android without using MonoGame?
I want to convert my XNA Game to Android, but I don't want to use MonoGame or ExEn. How can I do this?
-2
votes
0answers
46 views
xna 2d tank game [closed]
I need help. I am making game with terrain. I have 2 questions :
I don't have any idea to make that 2d tank.. Should I use some
animated sprite or what? I want to make my tank animated ...
2
votes
1answer
87 views
Issues upscaling pixel art with SampleState.PointClamp
I'm developing a 2D game, and I'm striving to create a nice blocky low-res appearance for the game, yet allow it to be played at variable resolutions. So, I've researched resolution independency and ...
-1
votes
1answer
64 views
Animation from bones?
I have a model loaded into my XNA project, it has bones that were created in 3DS Max and I am wondering can I animate my model using code?
All I will be doing is basic movements such as an arm swing.
...
0
votes
1answer
64 views
Texture not carrying over to game correctly?
I have created my map for my game using 3DS Max. I have then applied textures to the map within 3DS Max, where the textures all show correctly. I export the map as a .fbx file to use within an XNA ...
-1
votes
1answer
112 views
Is there any physics engine for XNA? [closed]
I am an XNA game developer. I am now starting to develop physics games on XNA but the problem is that I don't know about any physics engine desinged for XNA. Please if you know about it kindly help ...
-2
votes
3answers
141 views
Can I use a list to spawn enemies? [closed]
I need to have about 10 enemies in my game, can I use a list to spawn them all in?
This is what I was working on but it only spawns 1 enemy in the coordinates of the last added to the list.
Here are ...
4
votes
1answer
231 views
Compiling a Monogame Game into a single .exe
Is it possible to compile a monogame game into a single .exe? I know if you go in the debug or release bin, there is in fact a .exe your game, except you move this .exe's file location or try to run ...
3
votes
1answer
71 views
Set a 2d camera's position so that a building is under the players feet
My issue is this: i am making a scrolling game in XNA, and the camera updates based on the players velocity, but the player never actually moves, he is always in the center of the screen. When he hits ...
7
votes
1answer
292 views
Implementing water effects (splashes) into XNA 4.0 game
I am creating a 2D XNA game and came across a tutorial on adding water effects (splashes) to an XNA game but after implementing it into my game I can't get it to scale down. Currently it takes up the ...
-1
votes
1answer
77 views
XNA Framework doesn't recognise controller [closed]
So just a little bit of XNA code:
if (this.IsActive && (Keyboard.GetState().GetPressedKeys().Length > 0 || Mouse.GetState().LeftButton == ButtonState.Pressed || ...
1
vote
2answers
184 views
Weird behavior with XNA SpriteBatch.Draw origin
I have a texture with 256x256 pixels.
Consider this piece of code:
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
...
9
votes
1answer
252 views
How do I prevent XNA from pausing Updates while the window is being resized/moved?
XNA stops calling Update and Draw while the game window is being resized or moved.
Why? Is there a way to prevent this behaviour?
(It causes my network code to desynchronise, because network ...
2
votes
2answers
150 views
World space and model space the dummies version [closed]
I'm by no means a 3d programmer but have recently taken it upon myself to build a Voxel based game and I'm having a little trouble understanding some of the concepts around matrices (what with my ...
2
votes
2answers
128 views
Collision detection against large arbitrarily shaped textures
What is the most effecient way to do collision detection on strangely shaped textures in XNA? Here is an example texture:
As you can see, it is far from a perfect square. I want the player to ...
0
votes
1answer
144 views
Is a HashTable the best way to store replay data in C#?
I'm looking to make a deterministic replay in my 2D game. I want to follow a similar approach to braid in storing the relevant information every frame (at 60 frames per second).
I wanted to know what ...
3
votes
1answer
123 views
'perfect' platformer base Xna
When a player touches a ground peice in a game, he seems to sink through the ground then slowly rise back up, and when he has risen back up, he is very jittery.
if (touchingTheGround())
{
...
0
votes
1answer
54 views
A view and projection matrix oddity?
I have a bit of a dilemma ...
So i setup my scene how I want it with some bits in it and now I want to move all my camera related code in to a camera class however doing so is proving to be a pain in ...
-2
votes
1answer
86 views
Extension method must be defined in a non-generic static class when adding static bool function [closed]
I try to use first answer of Checking for alternate keys with XNA IsKeyDown but the compiler shows me Extension method must be defined in a non-generic static class. How can I fix this issue?
-2
votes
1answer
95 views
Collision detection between player camera and a 3D model doesn't work [closed]
For some reason I can't get the collision right. My player/camera goes through the model, which is not what I wanted.
I just want to apply collision detection to the only model and prevent ...
0
votes
1answer
82 views
Receiving server data inside game loop
I'm planning on how my multiplayer game client game loop should work. While I'm convinced that server should be moved from game loop into it's own thread, I'm not sure what should I do about receiving ...
4
votes
1answer
155 views
Creating rectangles from the inner part of a texture2D
Ok, this may be hard to understand, but I'll do my best.
You will see that the first image is a normal mario, and the other is the result I am looking for. I'm trying to find a way to extract ...
-1
votes
1answer
195 views
Client Server Multiplayer Project
I have reviewed the relevant WinForms/XNA samples here and here.
However, my requirements are slightly different.
Given the following:
I am developing a multiplayer (Client - Server) game
There ...
2
votes
1answer
89 views
How to get an affect for balloon bursting in XNA?
I am a noob in XNA. I want to create an effect which shows a balloon bursting?
Any pointers would be highly appreciated.
0
votes
2answers
94 views
Returning The Position Of A Sprite Drawn & Updated By A List [closed]
My problem is this, when iceBoy hits any of the newGrounds in the ground.groundAmmount list, it will return the specific position of this newGround so that i can set iceBoy's position based on the ...
1
vote
1answer
102 views
Xna custom mouse not allowing me to move its sprite past certain bounds
I have written a Custom mouse, with a Custom sprite, using MouseState, and getting the X and Y variables. However i also have a camera that i wrote, and this allows me to leave the initial box. One ...
2
votes
1answer
164 views
Sketchup model renders wrong in XNA
My XNA model renders wrong.
It should render like that:
But it renders like that:
The background doesn't matter. It's just the model that renders wrong.
Here is the drawing code:
protected ...
0
votes
1answer
82 views
How to force playing attack animation until the end?
I rework the code to make it more easier to manage. How can I force the player cannot change the sprite animation by pressing any keys until the attack animation completely ends?
class Player
{
...
-1
votes
2answers
120 views
Why does my sprite animation sometimes runs faster? [closed]
I don't know why each time I call the Update_Animation function, my sprite animation runs faster. Is it caused by gameTime? How to fix it?
Here's the relevant code:
class Character
{
// ...
-1
votes
2answers
182 views
Making The Player Stop Bouncing And Stop Sinking In The Ground In A Platformer XNA
Heres a problem i've been having. I have a platformer, and whenever my player hits the ground he keeps bounding. Here's the falling code
iceBoy.moveY++;
iceBoy.position.Y += moveY;
Now heres the ...
2
votes
1answer
57 views
Saving model image
How can I get a top-down,side view of the model imported into XNA and then save that view as an image, that can be used later in the program?
Thank you for your time
2
votes
2answers
167 views
How to finish a sprite animation before going back to default animation?
I want to run a animation until it has gone through all the frames, even when the activation key is no longer held. After the animation is completely finished, it goes back to walking state. I also ...
2
votes
1answer
97 views
CPU Usage on the UI thread Warning - XNA WP7.1
When I run the Store Test Kit's profiler against my game, I get a warning that says something along the likes of "Very high CPU usage on the UI thread for operations other than frame drawing."
...
2
votes
1answer
103 views
XNA project won't target .NET 4.0
I am trying to reference the System.Threading.Task assembly. If I am not mistaken, it should be part of mscorlib. But no matter what I do, my project always defaults to the .net 2.0 runtime. Even if I ...
5
votes
2answers
133 views
How can I normalize a vector if I am handling movment of each axis seperatley?
I am writing a 2D tile based game engine in XNA, and I've recently fine-tuned my collision detection using the answers provided here and more specifically here.
The tile based collision detection now ...
1
vote
2answers
102 views
Textures loading too large on smaller monitors
I have an XNA game, and when i run the game the textures load all good on my computer and on my tv and they're all bring drawn in the right position. But on my laptop, which screen is smaller then ...
-1
votes
2answers
160 views
3D game demo in XNA [closed]
Does anyone know of a decent 3D game tutorial with source code?
I'm really new with 3D development for XNA and have found that the best way to figure out how to code for something is to look at ...
0
votes
0answers
47 views
Problem with drawing mesh
So I made this simple model in blender. Its made up of one mesh, and one armature that contains three bones. This is the parent-child relationship that I made in blender:
For the sake of simplicity ...
0
votes
3answers
696 views
MonoGame performance better then XNA?
I am currently thinking about porting a XNA game to other platforms using MonoGame. Do I understand this correctly that I can expect the game to render faster even under Windows 7 due to the use of ...
2
votes
1answer
127 views
How can i scale up a bounding box in Xna?
In Xna a spritebatch can be passed a value for scale. I have A bounding
box Rectangle that i have a border drawn around my sprite using the bounding box rect.
Now my question Scale can make the ...
2
votes
1answer
268 views
Portable sound and music for XNA / MonoGame?
What is the best (recommended) way to integrate audio (both sound effect and music) in a game project (using C#/XNA) targeting multiple desktop platforms (W7, W8 Metro, Linux, OSX, ...) via MonoGame. ...
5
votes
1answer
205 views
Portable buffered keyboard input for XNA / MonoGame?
As a preliminary solution, I am currently using the Nuclex framework in an C#/XNA game project for buffered keyboard input. Sadly, nuclex relies on SlimDX.Directinput.dll and therefore to my knowledge ...
11
votes
6answers
477 views
Run XNA game without graphics
Wondering if there is anyway to run an XNA game with out displaying anything.
I have a working game that runs in a client server setup where one player is the host and other people can connect to ...
2
votes
2answers
93 views
Create a variety a sprites from a single image in XNA?
I want to be able to take a single image and cut them up into a lot of images to make the sprites. How would I do that in XNA since I only know how to load the texture then use it without changing it?
...
1
vote
1answer
191 views
Collision detection against specific sprite shape using XNA with Farseer Physics?
I am making a 2D XNA Game, using Farseer Physics for collisions.
I need collisions to be resolved against the actual shape of the sprite image, ignoring transparent pixels, rather than against the ...
-2
votes
1answer
105 views
Help finding a good XNA physics library? [closed]
I'm looking for a good physics library for XNA. Can anyone help me find something good, simple and easy to learn for XNA?
8
votes
3answers
446 views
Vector3 vs. Vector2 - performance, usage?
I'm currently playing around with XNA, and creating a simple 2D platformer. I was thinking of adding multiple layers to make it a little bit of challenge.
In stead of having a Vector2 for my ...
-4
votes
1answer
211 views
Great tutorial for 3D XNA [closed]
I have finished learning 2D XNA and created a few simple games.
I want to learn the stuff below. Please recommend tutorials, books etc.
3D programming with concepts.
Game planning, Stages planning, ...
2
votes
1answer
136 views
How to implement in-game purchase?
I am currently developing an indie game using XNA/C#. I would like to give players the opportunity to try a free (but somewhat limited) demo version of the game. Nevertheless, the player should be ...
1
vote
2answers
306 views
Background blur in 2D game?
In an XNA 2D game, I am thinking about blurring the background slightly to increase the feeling of depth? I am already using parallax scrolling which works pretty well in terms of enhancing depth ...

