XNA is a game framework by Microsoft that allows deployment for Xbox Live Indie Games as well as Windows Phone 7.
0
votes
0answers
7 views
Farseer: Difficulties with ContactListener
How can I register the ContactListener in XNA? In the box2d manual is written:
9.4 Contact Listener
...
At run-time you can create an instance of the listener and register it with ...
-2
votes
1answer
40 views
-1
votes
0answers
15 views
ContentTypeReader isn't being found by in PSM Port
I'm in the process of porting over my XNA project to the Vita but when it comes to trying to read my custom xnb Monogame fails to find the ContentTypeReader.
This is the line used to read the map ...
1
vote
0answers
31 views
How to gradually decrease opacity of model?
I have been searching for this matter for a long time and slowly I begin to think that this option is not available in XNA for Windows Phone.
I am trying to get a 3D-Model to be drawn at 50% ...
2
votes
0answers
27 views
XNA 4.0 - Why does using a RenderTarget2d cause transparency on models?
I have been working through Riemers ShadowMap tutorial and everything was going well until the section on drawing to a separate rendertarget. I am using a different model and quads but I assumed the ...
-1
votes
1answer
43 views
Isometric Map Rendering Incorrectly [closed]
I've currently been trying my hand at Isometric map rendering via the tutorial over at XNA resources; http://www.xnaresources.com/default.asp?page=Tutorial:TileEngineSeries:4
However, unfortuanely ...
2
votes
1answer
79 views
How to animate a destruction of a model?
I have a model (see image) and I am trying to animate a destruction.
But it doesn't seem possible, since XNA is using only bones to animate.
So my question is:
Which workflow should I use, to ...
1
vote
1answer
33 views
Error instantiating Texture2D in MonoGame for Windows 8 Metro Apps
I have an game which builds for WindowsGL and Windows8. The WindowsGL works fine, but the Windows8 build throws an error when trying to instantiate a new Texture2D.
The Code:
var texture = new ...
-1
votes
1answer
58 views
SpriteBatch memory leak
I have a strange problem with XNA 4. I'm constructing a SpriteBatch using this.spriteBatch = new SpriteBatch( GraphicsDevice );.
This leads to a memory leak up to 600 MB memory consumption.
This ...
-4
votes
2answers
51 views
How do I draw something when the mouse is clicked?
Right now, I'm doing this:
public void buttonsClicked()
{
if (lastMouseState.LeftButton == ButtonState.Released
&& currentMouseState.LeftButton == ButtonState.Pressed)
{
...
1
vote
1answer
53 views
Create sprite and place in pre-defined places using mouse
So, I have a table. I want to be able to click on a button that allows a mode where I place a sprite on the table, on places that are predefined. How do I do that?
I was thinking I could constantly ...
-1
votes
0answers
38 views
Model disappears when drawn twice?
I have a game character I load once for the original model variable.
But when I link that asset (the model file) to an other model variable
during runtime (and load it during runtime), the original ...
-4
votes
0answers
43 views
The program '[756] TaskHost.exe' has exited with code 0 (0x0) [closed]
What is the cause of this error? I've commented part of my code, and after it application exits without any errors or warnings. I've commented part of Draw Method in one of my Menus Option in game. It ...
-3
votes
0answers
33 views
Farseer: Character jumps weird [closed]
I have a little problem with jumping. For example, the character(Mario) jumps from the top of a tile. The character is now in the air and not touching a tile. After that, he touches the right or left ...
2
votes
1answer
109 views
How do I make a tile passable in one direction only?
I want that my character can jump through some of the tiles, like Mario does in this video:
http://www.youtube.com/watch?v=zIPYzbNrNhc
In this video, Mario jumps up through orange platforms, but ...
0
votes
3answers
121 views
How do I move a sprite to the mouse position?
So, I'm trying to make my sprite walk to the X-coordinate of my mouse click.
This is my code:
currentMouseState = Mouse.GetState();
MouseState mouseState = Mouse.GetState();
...
-3
votes
0answers
34 views
Farseer: Difficulties with polygons [closed]
I want to create a polygon but I get many error messages. I don't know what to change.
What is wrong?
The size of my texture(polygonTexture) is 350x150 pixel. ...
-2
votes
1answer
31 views
Farseer: are you missing a using directive or an assembly reference?
I want to create a polygon in Farseer. I found an example in the documentation but it's not working because I get this error message:
The type or namespace name 'Vertices' could not be found (are you ...
0
votes
1answer
47 views
Farseer: Ball is not getting slower
The ball is not getting slower when it rolls over a straight platform. I added friction but that changed nothing, the ball still gets not slower. I want that the ball gets slower and slower and stops ...
0
votes
1answer
62 views
Farseer: Ball is not bouncing realistically
I created a ball that is rolling over platforms. When it falls from one platform to another, it should bounce just like in real life, but the ball keeps bouncing constantly and I don't know how to ...
0
votes
0answers
25 views
XNA 4.0 DepthStencil Buffer problem [closed]
I am trying to manage deferred rendering in my project. Esspecialy the skybox and clouds which has to be rendered behind everything and for sure the skybox+clouds will not be passed by deffered ...
1
vote
2answers
61 views
XNA spritebatch.Draw: Which part gets colored by the color parameter?
Which part gets colored and how can I control it?
I have a rounded block and my goal is to have the center filled with a certain color chosen by that parameter. Here's the picture:
...
0
votes
0answers
29 views
How to access translations of a model?
I have an animated Model, which I process with the SkinnedEffectProcessor.
I am generally asking, how I can access translations of a model, during animation.
All in all it's always a BoneTransform I ...
1
vote
1answer
111 views
Does XNA have a built-in GUI library?
Does such a thing exist or do I have to code one?
My project needs textboxes, buttons, input capture, timings for "press and hold keys" and so on. These are quite standard for a GUI library but hard ...
0
votes
0answers
27 views
Farseer physics engine: The name 'ConvertUnits' does not exist in the current context [duplicate]
http://digitalerr0r.wordpress.com/2012/03/11/farseer-physics-in-xna-4-0-for-windows-phone-1/
I tried this Farseer tutorial but I always get that error message in the following lines:
...
0
votes
2answers
93 views
C# XNA AABB vs AABB collision resolution, AABBs ghost through each other
I've been learning a bit of collision resolution through a tutorial here and I can't seem to get the AABBvsAABB resolution working, I have CirclevsCircle and AABBvsCircle resolution working with the ...
-4
votes
1answer
69 views
How to use a physics engine for collision detection? [closed]
I want to use Box2D.XNA or Farseer for collision detection in my 2D game, but I don't know how to start. I added Box2D.XNA to my solution, but I don't know how to create rectangles, circles or ...
3
votes
3answers
118 views
XNA Collision is quircky/wobbly, how to improve?
I am sorry if this was already answered but I couldn't find the answer.
So I am doing a tile based platformer and when I was making collision I had quiet a struggle I looked here and googled for ...
1
vote
1answer
64 views
XNA draw 3d graphics in 2d game
I am programming a simple pool game in XNA. I am using Farseer for simple 2d physics but I want to use 3d graphics. My problem is I can't get the rendering to work.
I have one model for the ball and ...
1
vote
1answer
38 views
Using GraphicsDevice.Viewport.Project with a small farPlaneDistance
I am using "GraphicsDevice.Viewport.Project()" to create a "3D" waypoint system like so;
I have a farPlaneDistance of 5000 in my camera;
objProjectionMatrix = ...
1
vote
2answers
95 views
Winform + XNA (Microsoft Example) - Issues with Drawing Texture2D
Before I get started I would just like to say that I have been using the Microsoft Winform + Xna examples found here:
WinForms Series 1: Graphics Device
I think I somewhat understand how its working ...
0
votes
1answer
46 views
XNA's SetData in a SharpDX Texture2D object in DirectX 11?
I'm trying to load a texture given a swap chain, and then populate that texture with data. I already have some bitmap data (although not sure if it is in the correct format) that I want to populate ...
-1
votes
1answer
37 views
On occasion game fails to catch end of screen transitions [closed]
When the player hits the edge of a screen the old screen slides down, and the new screen slides in with them landing on the opposite side from where the transition started. On occasion the bottom of ...
-3
votes
2answers
330 views
How to preload a vast amount of models?
This is more a theoretical question,
during runtime, my game runs smooth without any hickups. But as standard game-objects, my game contains collectibles such as coins (which are rotating Models).
...
0
votes
0answers
14 views
Bounding Frustrum move y to 0
I've been having problems with a quadtree and my camera's bounding frustrum. I'm using a quadtree to only draw the nodes in frame. My current method works 99% of the time but I have noticed a bug that ...
-1
votes
1answer
83 views
How to add a timer - Visual Studio, XNA (C#)
I'm wanting to add a timer in an XNA game using C#. The ultimate goal is to increment a score in a game every second by 10 points. As of now the score stays at zero. Watching YouTube videos is proving ...
0
votes
1answer
55 views
Refactoring an XNA map redraw [closed]
In the draw step I have different content loading depending on which side of the screen the player exits from. I'm trying to refactor this into a single method for handling the updated content, but I ...
1
vote
1answer
87 views
Rectangle collision is not working correctly [closed]
I have difficulties with the rectangle collision. My character can go through the right side and through the bottom of each platform rectangle. I guess their is a mathematical problem with the ...
0
votes
0answers
30 views
Need help with collision with player and tiles XNA [closed]
I have a player collision with the rectangle size 16x32
and the tiles are in 16x16 sizes. I have a problem checking collision with player touching 2(or more) tiles ontop of each other.
My code works ...
1
vote
4answers
78 views
vertices, better to have more but draw a smaller area or less but expand a larger area
I have a simple question really. I am creating water for a game and had two different design approaches:
Make a single plane that expands the entire playspace, which would take 6 vertices but cover ...
0
votes
1answer
61 views
Why is my model flickering when translating
I have several models here. When they stand still during gameTime, there's no flickering.
But as soon as I move them across the x-axis, they flicker on some places.
protected override void ...
-2
votes
0answers
44 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 ...
1
vote
1answer
245 views
2D Scrolling Background on XNA
How do I create a scrolling X and scrolling Y background without weird things happening like the player disappearing or not getting the offset correct?
I have code at ...
0
votes
0answers
44 views
How can I draw an Xbox Avatar?
I want to replace the main character of my 2D game by an Xbox avatar. How can I do that?
How can I add an avatar to my project?
How can I draw an avatar?
For example, I draw my main character like ...
-1
votes
1answer
86 views
XNA/MonoGame and Game Studio/MonoDevelop [closed]
First off, I have a bit of programming experience in Java and have always programmed using ViM (even though I recently moved to Sublime Text 2) and I'm trying to learn C# and the MonoGame framework. ...
-1
votes
1answer
72 views
Program closes without Exception
I'm using XNA 3.1 ( .NET 3.5 ) and my program closes without any warning, errors, or code instructing it to do so. I looked in the output, and there aren't any obscure messages outside of telling me ...
0
votes
1answer
47 views
Managing Background Sprites
I tried asking in Chat and no one answered, so the question goes here.
Anyone have advice for loading background Sprite maps? I'm trying to do it as efficiently as possible for a grid of 25 ...
0
votes
2answers
99 views
poor performance with kinect sdk and xna (color stream)
I'm trying to make an augmented reality game for advertisement, using the kinect sdk 1.6 and xna 4.0. I need to use the color image format rgb 1280X960, in spite of the fact that it runs at 12fps, ...
-1
votes
0answers
28 views
XNA crash when publish
I've made a 2D game, it runs fine when debugging but when I publish and install the game prompts an error and fails to run.
I have three text files in my game which store various game data - ...
2
votes
1answer
83 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 ...

