XNA is a game framework by Microsoft that allows deployment for Xbox Live Indie Games as well as Windows Phone 7.
0
votes
0answers
13 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
62 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
2answers
78 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
32 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
129 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
63 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
288 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
49 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
51 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
70 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
0answers
45 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
85 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
57 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
322 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
20 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
522 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
18 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
34 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
31 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
346 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
45 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
35 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
87 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
203 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
59 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
56 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
53 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
39 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
46 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
34 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
115 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
130 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
35 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 ...
1
vote
1answer
401 views
how to modify shadow mapping in “3D Graphics with XNA Game Studio 4.0”?
So I've been following the tutorials from the book Sean James's "3D Graphics with XNA Game Studio 4.0", and have been doing fine until i reached the shadow mapping part.
in this book it creates point ...
1
vote
2answers
65 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
1answer
48 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 ...
1
vote
1answer
106 views
How can i use triangle picking to determine the exact location of a triangle in world space coordinates?
Im trying to implement point and click movement in my game, but at the moment im stumped about how i can select parts of a mesh for the player to walk to.
So what ive done is ive got a navigational ...
0
votes
1answer
64 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 ...




