XNA is a game framework by Microsoft that allows deployment for Xbox Live Indie Games as well as Windows Phone 7.

learn more… | top users | synonyms

0
votes
0answers
32 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
56 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 ...
-1
votes
0answers
76 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
25 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
87 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 ...
0
votes
1answer
40 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 ...
5
votes
1answer
423 views

Animating a 3D model with XNA

How do I animate a biped model from 3ds max using XNA framework or not necessarily the biped model, it could be any 3D model but how can I code the animation?
1
vote
3answers
118 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 ...
1
vote
1answer
41 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
82 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 ...
0
votes
1answer
53 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
132 views

Disappearring instances of VertexPositionColor using MonoGame

I am a complete beginner in graphics developing with XNA/Monogame. Started my own project using Monogame 3.0 for WinRT. I have this unexplainable issue that some of the vertices disappear while doing ...
-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 ...
7
votes
1answer
295 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 ...
-2
votes
1answer
62 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 ...
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 ...
0
votes
1answer
71 views

How to effectively check for object visibility prior to object creation?

I'm using pseudo-random noise to create a cube world a la Minecraft. So I've got my noise generators up and running, working great. Right now I'm just directly scaling the noise output to a height and ...
1
vote
1answer
94 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?
1
vote
1answer
58 views

Input skeleton not found

I have a 3D-Model, made in Maya and I am trying to parse that through the latest XNA with the SkinnedModelProcessor (However, this issue remains without that processor). In Maya, the skin is already ...
0
votes
1answer
32 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 ...
2
votes
2answers
326 views

3D Collision Detection with XNA

So I'm trying to implement some collision detection in XNA. I'm aware of the Bounding Spheres, but I worry with the accuracy, most items in my game are cubic in nature, so it seems very square-peg in ...
3
votes
3answers
306 views

How can multiple clients be out of sync if they use the same RNG seed?

I have been working on a client-server architecture to enable LAN play for my open source game, Aigilas. In its current state, players stay synced in all running instances of the game but enemies and ...
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
66 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 ...
0
votes
1answer
407 views

3DS Max MassFX — Animation to XNA without bones/skins?

I made a model in which a number of cobble stones fall into a hole using the rigid bodies in 3DS Max 2012 MassFX. They are just editable polys, no skin, no bone. I want this to play (Take 001, 0-100 ...
11
votes
1answer
1k views

Draw real time fog of war in 2d game

I have game situation as shown in picture: Red dot: player Brown dot: obstacle ( rock, tree, etc) Grey: non visible area ( under fog of war) My question is: how can I draw that kind of shape, ...
1
vote
2answers
524 views

How do I implement fog of war in a tile-based game?

I have created a 2D Tile Based game. The game has a single path that the sprite can move on. I want to create to make the entire screen black except for where the sprite is. The sprite has commands ...
-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 ...
7
votes
1answer
348 views

Spritebatch drawing sprite with jagged borders

Alright, I've been on the making of a sprite class and a sprite sheet manager, but have come across this problem. Pretty much, the project is acting like so; for example: Let's take this .png ...
-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 ...
4
votes
7answers
3k views

How to generate Spritefonts for monogame

I just want to render some text to the screen using: monogame 3.0 MS Visual Studio 2010 C# Express In XNA, you were able to add fonts to the content pipeline quite easily. But this doesn't seem 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 ...
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 ...
0
votes
3answers
204 views

XNA SpriteBatch.Draw with rotation, scaling and origin?

I use a 1x1 pixel 2d texture as source for SpriteBatch.Draw. The texture is scaled and rotated around an origin. The left image is only scaling. The right one scaling + rotation around the origin at ...
1
vote
1answer
301 views

Tongue pull effect

I've been searching on the net for several days and can not find nothing about this effect. Even a name for this effect. I want to make a character that can use his tongue to pull objects objects it ...
-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 ...
1
vote
2answers
166 views

Collision Detection - Slide Around Sprite

I'm creating an RPG using XNA/C# and am trying to add some complicated collision detection code. I have the playable character 'Wizard' and when it collides with something, a method gets called in his ...
0
votes
1answer
467 views

Abstracting entity caching in XNA

I am in a situation where I am writing a framework in XNA and there will be quite a lot of static (ish) content which wont render that often. Now I am trying to take the same sort of approach I would ...
1
vote
1answer
58 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 ...
-4
votes
2answers
54 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
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 ...
1
vote
1answer
270 views

Ball bouncing at a certain angle and efficiency computations

I would like to make a pong game with a small twist (for now). Every time the ball bounces off one of the paddles i want it to be under a certain angle (between a min and a max). I simply can't ...
-4
votes
0answers
50 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
139 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(); ...
2
votes
1answer
260 views

3ds Max CAT to XNA

Has anyone successfully used the CAT bone system in 3ds Max and exported the file into XNA? If so, what was your method of doing so? There are a number of methods of doing this apparently, but the ...
-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. ...

1 2 3 4 5 41