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
1answer
26 views

(XNA) Possible to hide, compress, or rename .XNB files?

I'm fairly new to XNA (only a week into C# and XNA at this point) but I have been developing games for a while now, and the program I used did not require any/many external files in creating an ...
0
votes
0answers
33 views

How can I create a 2D camera with zoom and parallax scrolling that works on every Windows Phone resolution?

Mario game that uses parallax scrolling: http://www.youtube.com/watch?v=de5f3mvRyIY I want to create a Windows Phone jump-and-run game with parallax scrolling. The parallax scrolling should be like ...
0
votes
2answers
36 views

XNA graphics.PreferredBackBufferWidth's new value doesn't immediately change window size

I set the width and height of the window in my game constructor, and then pass the graphics manager to a class to check the value. In the game's initialize function, it doesn't seem to recognize the ...
0
votes
1answer
40 views

Save Texture2D to file in Monogame

I'm working on a tilesheet builder tool for my game to speed up tile creation, and I need to save a generated texture2D as a png. I've tried using the .SaveAsPng function but it isn't implemented in ...
1
vote
2answers
69 views

Loading and storing content efficiently

So for example I have a class called TypingKeyboard. It allows you to display a string while it's being typed by the computer with sounds. I need one in the menu, for the title. And one for the ...
0
votes
0answers
24 views

Masking between two different 2D sprites in XNA

I'm rewriting a client (2D) for an old game. When rendering a character, the player has a type of hair and an optional type of hat. As far as I can tell, the game does the following to clip hair that ...
0
votes
0answers
34 views

A new Picross Game [closed]

I have been working on Picross Puzzles for a few years. I have drawn lots of puzzles, more than 200, and I can add thousands more thanks to my autosolving algorithm. My project is currently working ...
0
votes
1answer
38 views

XNA Masking Mayhem

I'd like to start by mentioning that I'm just an amateur programmer of the past 2 years with no formal training and know very little about maximizing the potential of graphics hardware. I can write ...
0
votes
1answer
47 views

Trying to understand the XNA fixed time step game loop logic

I came across the blog post Understanding GameTime, and after lots of reading on fixed time steps in game loops this is the approach I would like to take. In summary, this is the logic from the post: ...
0
votes
1answer
43 views

Detect which key was pressed last each frame

Why hello there, im developing a 2D game using XNA. My character movment is currently based on the keyboard state. Example (in the right order): if (state.IsKeyDown(Keys.W)) { //Do ...
0
votes
1answer
46 views

Blender animation to XNA distortion bug

I followed the instructions on the following video: http://www.youtube.com/watch?v=SissgQ0IXvk I'm using XNA 4.0 and Blender 2.69 I export the model with animation to a .FBX file. The animation is ...
0
votes
1answer
76 views

2D terrain with midpoint displacement and collision

I followed this theory Here to implement a simple scrolling 2D terrain for my running game. I am used to dealing with collision via a tile system but am looking for a good theory on how to perform ...
0
votes
0answers
39 views

Why isn't my Blender FBX not appearing in XNA?

I am trying to display a simple cube in XNA. The cube is the default Blender cube exported to a .fbx. Re-exporting the cube has had no effect. I have also varied the camera's z-distance from 5 to ...
1
vote
1answer
97 views

Resolution independent game world in 3D

I'm developing a game similar to Don't Starve - 2D billboards in a 3D world. Now I have encountered a problem with resolutions. I want the player to be able to change resolution, but I don't want to ...
1
vote
0answers
40 views

XNA Library DrawPrimitives throwing primitiveCount error

I downloaded the project from here http://silverlight.bayprince.com/tutorials.php?tutorial=13 and tried adding a new OBJ file with a few thousand vertices listed. The classic teapot works but when I ...
1
vote
0answers
59 views

How would I warp a mesh with code?

I recently asked a question about putting a camera at the head of a 3D human model here and it worked out rather well and whatnot, but there is still a problem that bothers me: How would I ...
1
vote
0answers
52 views

Any easier way to add networking to an XNA game? [closed]

I know that the MSDN has an article on this but I'm not developing for Xbox so I'm not sure if I should use NetworkSession or LocalGamer etc etc because I think they are Xbox only. But I haven't tried ...
2
votes
1answer
113 views

Is it more efficient to use an A* algorithm or a line system drawn in pathfinding in C#?

I was recently introduced to the A* algorithm when I asked a friend about making AI/NPC's in video games move to certain points and it sounded very interesting. I am building an FPS and it has AI that ...
1
vote
1answer
73 views

XNA 4.0 - Car game dashboard lights

I'm making a car game and doing the dashboard part. I'm trying to do the dashboard lights, i've did this changing the dashboard texture, overwriting the texture with the light image over it, example: ...
2
votes
2answers
136 views

Pathplanning A* Getting stuck in wall

I'm having a problem with my pathplanning. I can plan a path and make my character follow it, that's not a problem but then i plan a path around a wall it takes the shortest way as A* suggests, which ...
1
vote
1answer
98 views

Obstacle Avoidance With Walls in C#

I'm trying to do some obstacle avoidance. Yet somehow something is not going quite well. I've used the book "Programming Game AI by Example" to create a simular function in c# in combination with XNA. ...
1
vote
0answers
18 views

XNA 4.0 - Model texture transparency [closed]

I'm trying to use a semi transparent texture on a model in xna using BasicEffect, like this: ((BasicEffect)mesh.Effects[0]).Texture = alphaTexture; I've made the texture in code using color class, ...
4
votes
2answers
79 views

What is the most efficient way to work with lip sync/facial expressions in XNA?

I've been searching for an answer forever, but I haven't found one. What options are there for lip sync/facial expressions in video games made with XNA? I have a few models for a game I'm building, ...
1
vote
3answers
111 views

Removing something on Collision?

I have my collision detection code working so how would I tell my HealthPickup to disappear when my Player collides with it? I haven't played around with it yet but I think I may have to somehow ...
0
votes
1answer
61 views

Detecting Hitbox Collisions (Rectangle)

So I have some Hitboxes set up on 2 classes, HealthPickup and Player. public static Rectangle Hitbox; public override void Initialize() { Hitbox = new Rectangle(Pos.X, Pos.Y, 32, 32); } That's ...
3
votes
2answers
169 views

Tons of stuttering in XNA?

As stated in the title, my program stutters like crazy, even though my program for the most part runs for 60 fps. During the moments it stutters, FPS momentarily drops down to 59(stats from FRAPS). ...
1
vote
1answer
81 views

More Precise PathSmoothing

I'm reading a book about AI - Path planning and path smoothing. Yet this book is using c++ code. And i'm coding in c# with the XNA framework. I have a path smoothing working, yet the book says it can ...
0
votes
1answer
48 views

How to modify Game1.cs out of an object it contains? [closed]

Assuming I Have a List<SomeClass> myList; in my Game1-class. It also contains an object of SomeOtherClass otherClass;. How would I modify myList (Add/Remove) out of the otherClass's logic? Or in ...
0
votes
1answer
61 views

Volumetric Lighting projects models

I've been trying to implement Volumetric Lighting using the code from this tutorial but I've run into some issues, even after basically copypasting the shader code. I'll just show you what's going ...
0
votes
0answers
45 views

How to I coordinate a camera with the eyes of a model?

I am currently working on an FPS in XNA and I wanted to know how I would position the camera at the eyes of the model and whenever the model rotated or moved it's head (where the eyes are), the camera ...
0
votes
0answers
46 views

Particle friction with variable timestep in XNA

Alright, so I'm working on an engine of sorts in XNA (yes, it's deprecated, I know) and I'm implementing my own particle system. I've defined a "ParticleEffect" such that when it's supplied a GameTime ...
2
votes
2answers
153 views

XNA - Making 2D Hexagons Connect With Each Other

Hey so I'm working on a top-down 2D strategy game in XNA, and the tiles are hexagons. I can't have a grid because of the game mechanics, so everything has its own location, and every tile object is ...
2
votes
1answer
596 views

Drawing and scrolling very large zoomed tilemaps

I've been working on my game editor and doing some performance tests. In the meantime I realized that my editors performance goes significant down if I draw a large map and zoom it. 100% zoom = 112 ...
1
vote
1answer
78 views

Better to use one line per .wav or one scene per .wav for character speech?

I'm building a game in XNA and I wanted to know how I would organize the character speech portions of the game. These would include both cutscenes and anything else where characters interact. I ...
2
votes
2answers
105 views

Problem draw SkyBox behind my sun - XNA

I try to create a small and simple 3D games on XNA. I recently started to add a skyBox after added a sun in my game with the sample by Microsoft here ...
0
votes
1answer
40 views

XNA 3D cube rotation problem

I am new to game programming and still trying to clear up my basics. I am stuck with a problem and unable to resolve on my own knowledge. I am trying to rotate a 3d cube in MonoGame (Similar to XNA) ...
1
vote
1answer
119 views

Loading a stream/asset on Android MonoGame without ContentManager

In the game I am developing, I have created a serializable class that generates a .map file for saving and loading levels. In XNA, this works great using the following code: FileStream fileStream = ...
0
votes
0answers
32 views

Mouse RayCast quadTree in XNa

Hallo i have quadTree terain and every quadNode have BBox.I have made function to return center of hitted quadNode BBox. But it's returns my bad calculations..... I have pitchedYawRoll camera ,it's ...
1
vote
1answer
105 views

Tile textures on 3D models. HLSL shader code maybe?

I'm making a game in C# with XNA. I'm now applying textures to models. However if I change the scale of the model, the texture stretches with it. How can I make the texture tile over the model instead ...
0
votes
0answers
46 views

Pixel-Perfect Collision With Rotation

I know how to implement pixel perfect collision, but how would I do this with rotations applied to my sprite?
0
votes
1answer
62 views

Path smoothing while path following

I can't find a nice way to do path smoothing while i'm following a path. I have tried this piece of code but aparently it doesn't work as suspected. The idea of how it should work is: Edge 1 (the ...
0
votes
0answers
19 views

Tiled and tmx files

i started using the software tiled and it very simple to create an image and object positions over there. I am using the library XNA and i would like to load the image and the objects into my code, ...
1
vote
1answer
57 views

How can I create a seesaw with Farseer Physics Engine?

I want to create a seesaw like in this picture: I created two rectangular bodies, one for the diagonal rectangle and one for the little rectangle in the middle. But I don't know how to connect the ...
1
vote
0answers
51 views

XNA - Strange Texture Rendering Issue Using XNA BasicEffect

I have been reading and working through Riemers 3D XNA tutorials to expand my knowledge of XNA from 2D into 3D. Unfortunately I am having rendering issues that I am unable to solve and I need a point ...
1
vote
1answer
71 views

Predicted target location [duplicate]

I'm having an issue with calculating the predicted linear angle a projectile needs to move in to intersect a moving enemy ship for my 2D game. I've tried following the document here, but what I've ...
1
vote
1answer
30 views

Predicted target location

I'm having an issue with calculating the predicted linear angle a projectile needs to move in to intersect a moving enemy ship for my 2D game. I've tried following the document here, but what I've ...
-1
votes
1answer
53 views

Problem with publishing an XNA game [closed]

I can't publish a game in XNA, if I try there comes out 2 errors: 1)Could not find required file 'setup.bin' in'C:\Users\Trica\Desktop\example\example\ example\Engine'. 2)Cannot publish because a ...
0
votes
1answer
50 views

XNA tempory pause

I need to do a temporary pause. If I do a collision with an enemy I want to pause the game for 1.5 seconds. Take a look here to my code: bool tPause; float timer; public ovveride Update(GameTime ...
3
votes
1answer
138 views

Best way to blend colors in tile lighting? (XNA)

I have made a color, decent, recursive, fast tile lighting system in my game. It does everything I need except one thing: different colors are not blended at all: Here is my color blend code: ...
0
votes
0answers
31 views

Converting a WIndows Store App to Android

I cross posted this from SO I'm very new to Xamarin. I have a few published Windows Store apps and want to convert them to Android. I'm attempting to use Xamarin for this. I'm just using the free ...