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

2
votes
3answers
329 views

XNA 3.1 to 4.0 Vertex Shader Not Drawing

I have recently been converting our XNA 3.1 game to XNA 4.0 and am stuck on the shaders. I have the game running, but nothing is drawing to the screen, except things not using a shader. This is only ...
0
votes
3answers
263 views

Encode two integers into colour values and compare them in a HLSL shader

I am writing a 2D point and click adventure game in Monogame, and I'd like to be able to create an image mask for every room which defines which parts of the background a character can walk behind, ...
2
votes
2answers
1k views

XNA: Rotating Bones

XNA 4.0 I am trying to learn how to rotate bones on a very simple tank model I made in Cinema 4D. It is rigged by 3 bones, Root -> Main -> Turret -> Barrel I have binded all of the objects to the ...
0
votes
2answers
139 views

Collide with rotation of the object

I'm developing a mirror for lazer beam(Ball sprite). There I'm trying to redirect the laze beam according to the ration degree of the mirror(Rectangle). How can I collide the ball to the correct angle ...
-1
votes
1answer
100 views

Why are the coordinates interchanged in Monogame?

If I use XNA Gamestudio, I can draw a sprite on a specific position like this: spriteBatch.Draw(Texture2D, new Vector2(PositionX, PositionY), Color.White); But in Monogame, I must change the ...
-1
votes
1answer
553 views

Xna tile map collision

I finally found a tutorial on tile maps and loading them in from a file that I understand (http://circlessuck.blogspot.co.uk/2012/09/xna-tutorial-basic-tile-engine-part-2.html), however the tutorial ...
-1
votes
1answer
109 views

XNA changing color alpha

I know I can take a color and multiply it by a float to reduce its alpha like that: Color color = Color.Green * 0.15f; But how do I return the color's alpha to it's original value? I tried doing ...
-1
votes
1answer
194 views

3d Wall sliding collision

I'm working on collision for walls in my game and the way I currently have it I get stuck walking into a wall. I'm trying to make my character slide on the walls but still collide. My character moves ...
-1
votes
1answer
60 views

Setting texture in effect pass

I created different types of cubes for my cube class and based on the height of the cube, the cube type is different. This means changing the texture for the cube. if (y >= 1) ...
-1
votes
1answer
63 views

A quick question about culling

So I have some vertices that I'm drawing with XNA and the issue I had ages ago was that they weren't appearing when the camera was placed above them. By turning on backface culling this fixed it, but ...
-1
votes
1answer
102 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
votes
1answer
111 views

Why is my model flickering when translating

I have several models here. When they stand still during gameTime, there's no flickering. But as soon as I move them across the x-axis, they flicker on some places. protected override void ...
-1
votes
1answer
492 views

Microsoft App Hub “the resource you are looking for is unavailable at this time”

I'm trying to get App Hub to allow me to upload an XBox game. To do so I must "get verified with dreamspark" and varify through my school, in my case a university. App Hub directs me to doing this. ...
-2
votes
1answer
83 views

How to remove line between two Points XNA 4.0?

I'm new to XNA and wondering if it is possible to remove a line (that lies between two vectors) when the mouse clicks on that line. I've searched everywhere but I can't seem to find anything. My ...
-2
votes
1answer
174 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 ...
-3
votes
1answer
146 views

How to shoot lasers from Ship(XNA)?

I want a code which allows me to shoot multiple lasers from my Ship. Its a 2D game and the laser TEXTURE2D moves in a straight line. My Solution: I use List<> class of my Laser Class. ...
-4
votes
1answer
199 views

How Do Game Timers Work?

I don't understand the whole game timer things, I know XNA comes with one but im realying on VSync to do the work rather then a game timer. I know what they are It's just can someone show me of a ...