Tagged Questions

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
23 views

XNA Games running on Windows 8

Will Games developed on XNA work under a Windows 8 environment? I know the XNA project was killed off, and you can't develop it on Windows 8 (apparently), but will they still work under windows 8? I ...
0
votes
0answers
17 views

Gleed 2D Map to Farseer Level (Non - Tile Based)

I am working on a physics based platformer and have currently used the solution found here: Loading and using GLEED2D levels into WP7 Game in order to load levels into my game. Now I am trying to ...
0
votes
0answers
23 views

XNA Vector2 Normalize - Jaggy Walking

I'm making an RPG using C# and XNA, it's using a 2D tile engine, each tile is 8 x 8. When my character walks diagonal, it was moving faster compared to when walking in a straight line. I found that ...
0
votes
0answers
34 views

problems with C# Port of Recast Detour Navigation Mesh for XNA, A* Pathing

Update 10/03 Ok, so i figured out the problem. C# is a funny old language..I changed int navMeshCount = navMesh.GetPath(ref start, ref end, routePolys, navMeshRoute, false); to var ...
0
votes
1answer
49 views

Receiving server data inside game loop

I'm planning on how my multiplayer game client game loop should work. While I'm convinced that server should be moved from game loop into it's own thread, I'm not sure what should I do about receiving ...
1
vote
0answers
14 views

XNA Kinect Color Stream Performance Issues

I am developing an XNA game using Kinect. It requires using Depth and Color streams for extracting only the player's image from the color image. So far I can extract the image and set their data into ...
1
vote
1answer
62 views

Using git with XNA

I'm a single developer trying to use Git (I'm told it's much better than SVN) to keep track of my XNA project. Would I copy my project into a bare repository and then add the files? If so, do I need ...
0
votes
2answers
26 views

how to load normals for a model from texture2d?

I know i can do this through custom shaders, but i want to know is it possible to set it through xna itself. As for each effect i have pick normals from a texture2d, i want to change normals of model. ...
2
votes
2answers
59 views

Texturing 2D vectorial terrain (or simply masking texture)

I have a procedurally generated terrain, as follows: It is generated and then built using Farseer Physics, however I haven't found a way to create and apply a mask to texture it properly, I have ...
2
votes
0answers
52 views

Create rectangles from a texture2D XNA 4.0 / C#

Ok, this may be hard to understand, but I'll do my best. You will see that the first image is a normal mario, and the other is the result I am looking for. I'm trying to find a way to extract ...
-1
votes
1answer
96 views

Client Server Multiplayer Project

I have reviewed the relevant WinForms/XNA samples here and here. However, my requirements are slightly different. Given the following: I am developing a multiplayer (Client - Server) game There ...
1
vote
1answer
37 views

Moving an object toward another object on sphere knowing their quaternions

I have a sphere centered in world origin. On the sphere surface I have two objects and I know their quaternions (rotation around sphere). Currently my movement works on Vector2 inputs (cannot change ...
0
votes
1answer
40 views

How to setup Authentication Database and Game Database?

I'm playing around with creating a game in C# using the XNA Framework. I've decided to use technologies that I'm pretty much familiar with and create things from scratch. There are probably frameworks ...
0
votes
1answer
31 views

Map state in XNA on WP8

I am developing an RPG for Windows Phone 8 using XNA. I have a map screen and a fight screen. I want to use XNA for both to utilize the graphics helpers and because XNA is awesome. My question is, how ...
-4
votes
1answer
98 views

Is there a successor to XNA? [closed]

I was developing till now using XNA, but now that Microsoft abandons it i understand that i need to find another framework. Because i'm not familiar with other frameworks (except directX) i would like ...
0
votes
1answer
65 views

I'm having trouble with collision detection in XNA

I've written a tile editor and game in XNA, with velocities and gravity, and am having trouble with some of my collision detection things. It works okay, but seems to glitch between just inside and ...
2
votes
0answers
39 views

Custom XNA installer

I have been developing a game using XNA and am now at a point in the production of my game where I am testing out how the user will install the game. I know that XNA provides the usual ClickOnce ...
2
votes
1answer
43 views

SpriteBatch.Draw with scale or rotation trigger a new batch?

I recently read that any transformation changes will cause a new batch to be triggered. So, if I have 10 Sprites and each has a different rotation or scale will there be 10 batches sent up? Or is ...
0
votes
1answer
50 views

Controls become inverted after a collision

I'm just prototyping a simple project. I'm moving a sprite on screen using the Xbox gamepad: public override void Update(GameTime gameTime) { gamePad = GamePad.GetState(PlayerIndex.One); ...
0
votes
1answer
59 views

xna creating game stage management contrls

I am under planning stage of my game where I am creating controls for my game. I have create below control for stages but have no idea how this we can achieve in xna. Please also help me with your ...
2
votes
1answer
76 views

How to get an affect for balloon bursting in XNA?

I am a noob in XNA. I want to create an effect which shows a balloon bursting? Any pointers would be highly appreciated.
8
votes
0answers
200 views

Atmospheric scattering sky from space artifacts

I am in the process of implementing atmospheric scattering of a planets from space. I have been using Sean O'Neil's shaders from http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter16.html as a ...
1
vote
2answers
69 views

How to set multiple times, in a single spritebatch, the same pixel shader parameter

I make a test with Effect class in XNA and I want to set multiple times the same parameters (MyParameter in below code). My code is : [...] //In Engine class Effect ShaderEffect = ...
0
votes
1answer
42 views

Using IGameComponent and related interfaces in MonoGame

I am trying to port a XNA project to MonoGame which involves a DLL game library that I created. This library uses the IGameComponent, IUpdateable and IDrawable interfaces to load one of my library ...
-1
votes
0answers
42 views

ArgumentOutOfRangeException was unhandled What is wrong in my Animation class? [closed]

I wrote a class to play my animations. But it just works if I play the entire animation. For example: If my spritesheet has 3 pictures, I call the Animation class like that to play the entire ...
4
votes
3answers
219 views

Loading levels in XNA from XML

I'm trying to load levels in XNA from XML files. I have currently got a system to do this working, but it looks like it might get horribly complex as I add more objects later on. My world currently ...
2
votes
0answers
61 views

What's a simple way of sending game data between phones?

Using windows phones I need to send small amounts of data between phones in a turn based game. It's only a few bytes of data and does not need to be real time, something like in wordfeud or similar. ...
-6
votes
0answers
34 views

Now that xna is officially dead, what framework should I go for to write games in c#? [duplicate]

I want to create a 2d game, nothing too big. something that could be created with XNA really easily. however with all windows 8 and stuff, microsoft announcing xna is dead im wondering what are my ...
1
vote
2answers
54 views

How to set sprite position based on what sprite it is touching

How can i make the sprite iceBoy's position be the same as another sprites position when it touches it? Except these sprites are drawn and updated in a list, so how do i know which exact sprite it is ...
1
vote
1answer
58 views

Xna custom mouse not allowing me to move its sprite past certain bounds

I have written a Custom mouse, with a Custom sprite, using MouseState, and getting the X and Y variables. However i also have a camera that i wrote, and this allows me to leave the initial box. One ...
2
votes
1answer
113 views

Sketchup model renders wrong in XNA

My XNA model renders wrong. It should render like that: But it renders like that: The background doesn't matter. It's just the model that renders wrong. Here is the drawing code: protected ...
1
vote
0answers
80 views

Expensive operations and threading in XNA games

There's this post, it's highest voted answer got me curious about the many ways of threading games. My game has input update, game logic update, user interface update and expensive operations ...
-2
votes
1answer
84 views

Help me debug my 3-d collision code [closed]

I have been havaing a problem doing 3-d collision in a game i have been trying to make for several weeks now. What i am trying to do is prevent a PlayerModel object from colliding with Obstacle(cube) ...
2
votes
0answers
73 views

Loading custom shader in Monogame

I have been trying to load this custom FX file into a Monogame project, and everything I try fails. (code taken from http://www.david-gouveia.com/scrolling-textures-with-zoom-and-rotation/) sampler ...
0
votes
1answer
51 views

How to force playing attack animation until the end?

I rework the code to make it more easier to manage. How can I force the player cannot change the sprite animation by pressing any keys until the attack animation completely ends? class Player { ...
-1
votes
2answers
98 views

Why does my sprite animation sometimes runs faster? [closed]

I don't know why each time I call the Update_Animation function, my sprite animation runs faster. Is it caused by gameTime? How to fix it? Here's the relevant code: class Character { // ...
-1
votes
2answers
142 views

Making The Player Stop Bouncing And Stop Sinking In The Ground In A Platformer XNA

Heres a problem i've been having. I have a platformer, and whenever my player hits the ground he keeps bounding. Here's the falling code iceBoy.moveY++; iceBoy.position.Y += moveY; Now heres the ...
3
votes
3answers
135 views

How to create simple acceleration in a 2D sprite? [duplicate]

So here's what I thought might work but half the time I press the 'Right' key, it results in a crash and the rest of the time seems to produce no acceleration at all. if ...
2
votes
2answers
47 views

Farseer Physics: How to create shape from Verticies?

As you can understand from the title, I'm pretty new to game development. I'm doing this for fun. Anyway here's my question. I have this Farseer Physics samples and I've been studying them for a few ...
2
votes
1answer
52 views

Saving model image

How can I get a top-down,side view of the model imported into XNA and then save that view as an image, that can be used later in the program? Thank you for your time
2
votes
2answers
141 views

How to finish a sprite animation before going back to default animation?

I want to run a animation until it has gone through all the frames, even when the activation key is no longer held. After the animation is completely finished, it goes back to walking state. I also ...
1
vote
1answer
149 views

2D tile-based collisions: using different methods by tile?

I'm trying to write a collision handling method that handles each of the 9 potentially colliding tiles (the player's and the 8 around him) differently according to a "CollisionType" value attached to ...
3
votes
2answers
170 views

Unlocking XNA game update rate and preventing unnecessary Draw calls and heavy logic Updates

I had some input problems which can be partially solved by unlocking game update rate. Now the input updates as fast as possible, but the game also calls the main Draw method a lot too. I believe ...
1
vote
1answer
56 views

Alternative to soundeffect.play()?

I have been using a profiler to optimize my game for the Xbox, my aim is as with any optimization to reduce excess CPU and memory usage. I have managed to cut down a lot of the processor time and ...
1
vote
0answers
41 views

How do I export Daz3D characters into an XNA format?

How do I export 3D animated characters created in Daz3D studio to a format suitable for inclusion in XNA video games? I'm looking for instructions on how to make sure weight, bones, vertices and ...
-1
votes
2answers
69 views

Problem Loading sound effects on monogame with monodroid [closed]

I am having difficulty loading a soundeffect The path is correct, the .xnb is set to androidassets in the project. My Root is set to content and the folder structure looks like Assets Content ...
0
votes
1answer
88 views

Create Random Platformer-Gameworld

Evening. I created a xna-game like the iOS Platformer game "Banana Kong". The level-layers are currently saved as XML files. Example: <level> <layer1> <tile type="0" ...
0
votes
1answer
81 views

XNA cursor lag

I'm trying to understand if this is avoidable, or it's something I just have to deal with when using XNA. I made a new game project and loaded simple 16?�16 cursor image to draw each frame at exact ...
-3
votes
0answers
98 views

Collision Problems in 2D [closed]

I would love if somebody could steer me in the right direction with my problem here, I have a collision manager that is in charge of handling different types of collisions in my game's levels. At the ...
2
votes
1answer
64 views

CPU Usage on the UI thread Warning - XNA WP7.1

When I run the Store Test Kit's profiler against my game, I get a warning that says something along the likes of "Very high CPU usage on the UI thread for operations other than frame drawing." ...

1 2 3 4 5 38