XNA is a game framework by Microsoft that allows deployment for Xbox Live Indie Games as well as Windows Phone 7.
1
vote
1answer
16 views
Tutorial to port XNA game to MonoGame on iOS?
Are there any good tutorials to convert a current XNA game to work iOS using MonoGame?
0
votes
1answer
23 views
colliding 2 moving and rotating sprites in xna 2d
I recently started making a game in windows phone XNA, I have a rocket in the middle that I can rotate and has a thrust to speed up in the direction it is facing and meteors coming out. The point is ...
1
vote
1answer
92 views
When to use GameComponents?
I know what it is and I'm using it as a frame counter for example. But when should I use it?
Does it make sense to say "I make all the input handling happen in a gamecomponent"? Is it flexible enough ...
1
vote
1answer
60 views
Damage indicator screen overlay
I want to make something already done by a lot of games , which is when I am taking so much hits from enemy red screen drawn like the following , using XNA 4.0:
after it's drawn and I am still alive ...
0
votes
1answer
47 views
MonoGame Linux Mouse.SetPosition doesn't work!
Having a really weird issue, it seems that no matter what I do I cannot get the Mouse to lock to the center of the screen in MonoGame. I triple checked all the possible noob mistakes, and ...
-1
votes
0answers
78 views
What's the idea on the base of rendering camera on 2D platformers games? [closed]
I'm programming a 2D platformer game, and I am wondering about how the right to left scrolling of the camera is done in a game like this.
There is a background that need to be updated. There are also ...
0
votes
1answer
27 views
Farseer: RemoveBody is not working
I want to remove bodies after they touched the character(playerrect). But the bodies get not removed. I set a breakpoint in the following line but it doesn't get yellow:
...
1
vote
1answer
42 views
Farseer: How can I remove a body?
I have many sensors(coins) in each level and I want to remove the sensors(coins) when the player rectangle(Mario) touches them. I check in OnCollision if Mario touches a coin, if he touches it, it ...
0
votes
1answer
58 views
Creating 2D polygons in XNA
I am trying to implement collisions using the separating axis theorem. However All I have ever used in terms of polygons is the Rectangle class included in XNA already. How can I make multi-sided ...
0
votes
1answer
83 views
enemy View Range , chase player
for 3D:
Q1 : I want to make zone range for each enemy in the game , so that when the player in the view range he will be chased .
Q2 :if I want to make enemy walk a little bit around his position ...
-2
votes
1answer
63 views
Programmatically creating a 3d mesh in XNA
Surprise! Another question related to Minecraft. Anyways:
Rather than drawing thousands of blocks each frame, I remember reading somewhere that Minecraft breaks the map into 16x16x256 chunks, and ...
-1
votes
1answer
69 views
chasing , zone range
here is an image show what I am gonna to do in my XNA game , I want to check if the player is inside zone range and if yes then attack the player , I tried to do this using checking ray but it's odd ...
1
vote
3answers
121 views
How to design a GUI / controls system classes
I'm at the stage when I need to develop some kind of GUI with windows, clickable buttons, etc. It's going to be a RPG game so these components will be used extensively so I want them to be as flexible ...
0
votes
1answer
54 views
Resize a texture using the full SpriteBatch.Draw in XNA
I'm using the full Spritebatch.Draw function to draw my explosion sprite since I also need rotation. I am using the Scale value to resize my texture, but I can't get it to be accurate.
I want to be ...
1
vote
1answer
90 views
High-definition Full-motion background system in XNA
I'm mostly just working on this as a hobbyist thing, but here's my problem:
I got a bit excited over finding the 'Video' and 'VideoPlayer' classes in XNA 4, and hoped to make a game that works a ...
1
vote
1answer
96 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?
0
votes
1answer
34 views
What's the proper way to check if an Entity is on top of a surface?
What would be the best way to implement gravity if I have a list of different "surfaces" which if the player is on top of acceleration will stop? Would there be a better way than to loop through all ...
0
votes
1answer
21 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
67 views
C# Stack<> Problem [closed]
I'm trying to change List<> to Stack<> however I'm having a hard time figuring out.
A snippet of my code on where my issue occurs is:
private Stack<Gem> gems = new ...
-1
votes
0answers
19 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
38 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% ...
3
votes
0answers
33 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
49 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
90 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
36 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
61 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
55 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
59 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
40 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
51 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
37 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 ...
3
votes
1answer
116 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
145 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
37 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
34 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
49 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
67 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
27 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
67 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
32 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
121 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
105 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
70 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
124 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
72 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
41 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
107 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
49 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 ...



