XNA Game Studio 4.0 is a programming environment that allows you to use Visual Studio to create games for Windows Phone, the Xbox 360 console, and Windows-based computers.

learn more… | top users | synonyms (1)

0
votes
1answer
98 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
2answers
96 views

XNA model texture maps [closed]

Is it possible to make a texture maps for XNA .fbx models? Just one texture file for the whole model.
0
votes
2answers
478 views

XNA change a specific color of a model to another

Is it possible to change a specific color of a model to another? Example: Everything that's blue should be red or something like that. And is it possible to do this without the use of effects? I ...
-1
votes
1answer
146 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 ...
3
votes
1answer
554 views

Reading text files XNA 4.0 on Xbox 360

I'm working on porting a game from PC to Xbox 360. When I want to create a level I read a .txt file that I store in my content I read the whole file as a string using this method ...
3
votes
1answer
171 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()) { ...
11
votes
1answer
768 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 ...
1
vote
1answer
343 views

XNA effect lighting like basic effect lighting

Is it possible to make lighting in a normal effect work like the lighting in the basic effect? With a basic effect it's really easy: BasicEffect effect; effect.EnableDefaultLighting();
-2
votes
3answers
593 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 ...
0
votes
2answers
213 views

3d to 2d Collision

I have a 3d model which rotates around my screen, it's always on the Z axis = 0 where everything of my 2d images are. My 2d images fly out of the center and get bigger to give the view as getting ...
0
votes
1answer
94 views

Distorted edges in model rendering xna

The edges of my model are not rendered smooth in xna. See here. What can i do for this, as when designer renders the same model in maya, edges are smooth. And is it possible to render models in xna ...
0
votes
0answers
136 views

Why would rotating the camera effect my pick ray?

So i'm trying to get terrain picking going. I set up my ray, and I can pick out models, or sprites, whatever I want, no problem. But when I try and get my 3D coords based off terrain collision it ...
2
votes
1answer
776 views

XNA 4.0, FBX and Texture Loading Failures

I've been going through several tutorials on how to use XNA and understand a lot thus far. I've got a screen, I've got 2D sprites working, got a shader system operational, so far so good. Now I've ...
-1
votes
1answer
248 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
1answer
70 views

XNA draw model partially

Is it possible to draw a model partially (along the X, Y or Z axis) to make an extending barrier or something like that? (Scaling doesn't work because of the textures)
2
votes
2answers
226 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
2answers
1k views

XNA Health Bar continually decreasing

As per the Health bar tutorial on ... http://www.xnadevelopment.com/tutorials/notsohealthy/NotSoHealthy.shtml I have set up the above, how do I make it decrease by 1 health per second? I want to ...
-2
votes
1answer
253 views

Does this UV mapping method look ok? [closed]

i'm having a spot of trouble trying to get my voxels textures in the right place. I am using a very simple mechanism that assumes all sides of any given block are always individually specified (i'll ...
2
votes
2answers
463 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 ...
0
votes
0answers
77 views

What is an efficient/safe way to broker head to head communication for a mobile game

I have a mobile game written in XNA/MonoGame with a wcf server and I am currently designing the head to head competition mode. Previously I have created a game that used UDP to set up communication ...
0
votes
1answer
263 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 ...
0
votes
1answer
99 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 ...
-1
votes
1answer
901 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?
1
vote
2answers
288 views

How do I stop XNA/Visual Studio from rebuilding my content project every time I build?

My group and I are working on a game in XNA 4.0 with Visual Studio 2010/2012. The main solution has 6 projects: 2 XNA game projects (1 executable/ 1 class library), 1 WPF executable for the level ...
-2
votes
1answer
2k views

Moving A Sprite In The Direction Its Facing XNA [duplicate]

There are many questions on this site that explain this except they seem to all be in Java. I want to move a sprite in the direction it's facing, in XNA. I know you must use Radians and lots of ...
1
vote
0answers
392 views

XNA - How to move skinned model and merge animations

After you helped me to resolve my loadContent problem I've wrote some code and made 3D model with animation. Because XNA 4.0 doesn't support .fbx with multiple animations I've generated 3 models with ...
0
votes
2answers
107 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 ...
0
votes
1answer
127 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 ...
1
vote
3answers
2k 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 ...
7
votes
1answer
750 views

How to make a 3d beam effect with XNA 4.0?

Do you know any demo or tutorial to learn to make a 3D Beam effect? I have learn to make a 2D laser by simply using a texture and moving it thru screen. But I am a little bit lost while trying to do ...
1
vote
1answer
111 views

XNA 4.0 storage framework not being recognized

This may be a silly question but, im unable to do any save game data because for some reason, this following namespace is unrecognizable: using Microsoft.Xna.Framework.Storage; All the normal XNA ...
0
votes
1answer
345 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 ...
3
votes
1answer
395 views

Change opacity of a texture in XNA 4.0

I have created a terrain using VertexPositionNormalTexture in XNA 4.0, but now I would like to allow the user changing the opacity of the terrain (from 0%, totally opaque, to 100%, totally ...
0
votes
1answer
396 views

How to load a custom SpriteFont?

Is there any possible option where you can open a custom SpriteFont? Because I need to add to my game a font that is not in Windows already. I saw this page Custom Sprite Fonts and it's like I want ...
2
votes
1answer
137 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.
2
votes
1answer
254 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 ...
9
votes
3answers
572 views

Outline sprites

I'm currently working on a 2D game, and my current task is to outline selected object. I basically use a blur shader to do it fully runtime. I first draw my sprite using a vertical gaussian blur ...
1
vote
1answer
262 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 ...
0
votes
2answers
287 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 ...
1
vote
2answers
115 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 ...
0
votes
2answers
162 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 { // ...
3
votes
2answers
272 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 ...
0
votes
1answer
158 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 { ...
2
votes
1answer
63 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
1
vote
2answers
682 views

XNA .fbx model imported sideways

Using Blender 2.6. My model has its location and rotation zeroed out, scale set at 1.0, and generally conforms to every guideline detailed on this site and misc google results. When exporting it, I ...
0
votes
1answer
319 views

flicker when drawing 4 models for the first time

i have some models that i only draw at a certain moment in the game (after some seconds since the game has started). The problem is that in that first second when i start to draw the models, i see a ...
0
votes
1answer
584 views

Creating A Bounding Box around each item in a list XNA 4.0

I have asked a similar question before except i am more experienced and have more understanding of XNA. I have bullets that shoot whenever you press RightTrigger. I am having trouble though creating ...
1
vote
2answers
406 views

XNA Game Timer Help

How do I set a game timer in XNA? I need it to keep the game in sync no matter the lag or frame rate to prevent one moment to be normal but the next everything is sped up.
1
vote
1answer
332 views

Custom Content Pipeline with Automatic Serialization Load Error

I'm running into this error: Error loading "desert". Cannot find type TiledLib.MapContent, TiledLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. at ...
3
votes
1answer
188 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." ...