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.
-2
votes
1answer
110 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
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 ...
0
votes
0answers
64 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 ...
2
votes
2answers
129 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 ...
4
votes
0answers
87 views
Should the networking of my game be a component or a service?
I am working on a windows game and I am trying to understand the XNA GameComponents and GameServices classes and use. From what I understand about a component is that it has an Update method that ...
0
votes
2answers
125 views
XNA 4.0 Plane size
Possibly a dumb question, but do planes stretch on to infinity? I can't define a spanning area for it, and would have to do some sort of check for collisions like if(x intersects BoundingBox and ...
0
votes
1answer
146 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
55 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
87 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
0answers
109 views
Shaders Working in XNA but not Monogame Win8
Hey so I'm bringing a shader over from XNA to Win8. To test things I'm using josack's tutorial on pixel shaders:
http://blog.josack.com/2011/07/xna-2d-dynamic-lighting.html
I've got it running in my ...
-2
votes
1answer
101 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 ...
-2
votes
1answer
162 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 ...
0
votes
1answer
87 views
XNA 4 Content Pipeline dependency
I tried to create something to parse XML with, which needs the inclusion of the Microsoft.Xna.Framework.Content.Pipeline; reference. This was fine and all, but as soon as I tried to debug, I got the ...
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 ...
0
votes
1answer
81 views
Incorrect colour blending when using a pixel shader with XNA
I'm using XNA 4.0 to create a 2D game and while implementing a layer tinting pixel shader I noticed that when the texture's alpha value is anything between 1 or 0 the end result is different than ...
-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 ...
3
votes
1answer
89 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
0answers
121 views
XNA skinned model animation snapping and sped up
I'm exporting .fbx files from Blender 2.6, and followed the skinned model sample to get them to work in game. They do render and animate, but wrongly; they're sped up, and animations seem to reset ...
0
votes
1answer
82 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
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 ...
9
votes
3answers
294 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
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
165 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 ...
1
vote
2answers
158 views
Applying Angular Acceleration in a Basic Physics Model
I'm attempting to use a basic physics system to create an arcade flight model. So far I have managed to get the aircraft moving forward, apply gravity, etc. However, after trying to implement torque I ...
0
votes
1answer
83 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
{
// ...
0
votes
1answer
93 views
XNA Skinned Model - Keyframe.Bone out of range exception
I'm getting an IndexOutOfRangeException on this line of AnimationPlayer.cs:
boneTransforms[keyframe.Bone] = keyframe.Transform;
I don't get what it's really referring to. The error happens when ...
-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
168 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 ...
1
vote
2answers
229 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 ...
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 ...
0
votes
0answers
90 views
Xna problem drawing tIDE map
So i was trying to add tIDE to my project but i hit a Keyntfoundexception
map.Draw(mapDisplayDevice, viewport);
Any help would be usefull here is the rest of the class:
using System;
using ...
0
votes
1answer
176 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 ...
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
1answer
67 views
Extending ModelProcessor
How can one extend a model processor inside Windows Forms. In a normal XNA game you would simply create a new class like so(I think...):
[ContentProcessor]
public class ExtendedModelProcessor : ...
1
vote
2answers
103 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
vote
4answers
132 views
Selecting and moving vertices
How can I identify the correct vertecis and move them in XNA using VertexBuffer? Let's say I have a simple cuboid in my project and want to move one face of it. How would I loop thru vertices, get ...
-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
1answer
151 views
How to make AABB collisions work? [closed]
I am unable to make efficient AABB collision in XNA 4. I am making a platformer, with tile based map.
Here is what I do in my tile class :
public virtual void Update(GameTime gameTime, ...
0
votes
1answer
119 views
Complex Models using bounding boxes in xna 4
I'm new to XNA, and have just started looking into collision detection.
I've managed to get a bounding sphere around my first person camera object and i want to check the collision between that and ...
1
vote
1answer
78 views
XML serialization error on XBOX 360
When try to save game on an xbox with xml serialization i get a code 4 error. I made sure t oadd all the xml referances and there is no errors until i run the game. Any suggestions?
1
vote
1answer
95 views
xna game development editors [closed]
Developing a big xna game needs lots of work that to for individual developer.
Can someone suggest me good free and paid development editors which will quickly help designing levels, game etc.
I ...
0
votes
3answers
705 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 ...
0
votes
1answer
125 views
Exported FBX Blender Model not showing up in XNA
I really do apologise if this question has been asked before, but I recently created a model in Blender 2.63, exported it to an FBX file, and tried to display it in XNA (using 4.0 Refresh), but all ...


