Questions tagged [xna-4.0]

Version 4.0 (Final) of Microsoft's XNA Framework. If you use this tag, please also include the main tag XNA.

is the final version of Microsoft's XNA Framework.

XNA is a cross-platform framework originally from Microsoft that facilitates game development with .NET. Supports: Windows, Xbox 360, Windows Phone (natively), Silverlight (via SilverSprite or ExEn), iPhone/iPad, Android, Mac OS X, Linux and other (via MonoGame).

This was the definitive version that came out at 2010-09-16. Despite that it's no longer developed, It's still used for plenty of projects as of 2017.

If you use this tag, please also include the main tag .

1200 questions
5
votes
1 answer

Blurry SpriteFont on monogame (Win8)

i have a really weird problem, i'm trying to print a simple spritefont on screen but the sprite is getting really blurry... I have loaded the spritefont from VS 2010 using content pipeline to form the xnb file then load it to VS2012 under…
Heavy_Bullets
  • 518
  • 1
  • 4
  • 13
5
votes
2 answers

Main Menu navigation / keyboard input speed is too fast

I recently started to make video games using the XNA game studio 4.0. I have made a main menu with 4 sprite fonts using a button list. They change color from White to Yellow when I press the up and down arrows. My problem is that when I scroll…
5
votes
1 answer

Silverlight 5 and VertexBuffer.GetData()

I am trying to achieve 3d model collision in silverlight 5. To do that I am creating a BoundingBox (just like in XNA4.0): I saw the same question VertexBuffer.GetData() and Silverlight 5 in this link but no answers found. public BoundingBox…
Renien
  • 551
  • 4
  • 19
5
votes
1 answer

How to draw special characters in XNA?

I want to draw special characters like: "π,Ω,θ,ξ" in XNA by using method SpriteBatch.DrawString(), but I get an exception saying those characters aren't available in the SpriteFont file. Is there any solution for this?
HaiTrieu
  • 196
  • 2
  • 10
5
votes
3 answers

How can I ensure a file is a valid audio file and is not DRM protected?

I'm trying to complete the App Hub tutorial on how to create a Shooter 2D game in XNA - Located here: http://xbox.create.msdn.com/en-US/education/tutorial/2dgame/getting_started The project contains a bunch of graphics and some audio files. But when…
Daniel Olsen
  • 1,020
  • 2
  • 15
  • 27
4
votes
2 answers

How to get Color and coordinates(x,y) from Texture2D XNA c#?

What i'm trying to do is check perfect-pixel colision with 2 textures which have black edges for example: one of this texture is a circle the second one can be triangle or rectangle. this my code which give me only array of color without coordinates…
Harry89pl
  • 2,415
  • 12
  • 42
  • 63
4
votes
1 answer

Gesture FreeDrag performance

I have a simple question, I'm trying to make an huge game for Windows Phone, but I still have a important bottleneck/issue/bad performance. I've used the mango profiler, but I have seen no problem, infact it's using only 10% cpu on my phone. Let me…
Luca Trazzi
  • 1,240
  • 1
  • 13
  • 30
4
votes
4 answers

AI enemies converge on eachother while pursuing player

I have created enemies that chase the player around a game, but there is a problem. The enemies are too perfect and quickly converge on each other when they get close to the player. This is because they just move in the direction of the player each…
annonymously
  • 4,708
  • 6
  • 33
  • 47
4
votes
1 answer

How can I use blender animations in XNA 4.0?

I have a model in Blender (2.6+) with rigged animation. I exported it to FBX and import it to XNA. I know ho to draw it on the screen but how can I run the animation (called for example "run")? Thanks!
Darkry
  • 590
  • 2
  • 12
  • 26
4
votes
1 answer

Compass API for Windows Phone 7 (Mango)

Is there any API available to access the compass hardware in WP7 (Mango)?
Sreeraj VR
  • 1,524
  • 19
  • 35
4
votes
1 answer

The primary reference XXX could not be resolved because it has an indirect dependency on the framework assembly

I have created a simple XNA Windows Class Library with XNA 4.0 called "NivekGameEngine". I have created a simple game for the Windows platform, and I can access all contents of my dll just fine. The problem comes when I try to make a copy of this…
gunr2171
  • 16,104
  • 25
  • 61
  • 88
4
votes
2 answers

special blend needed in xna 4.0

i got 2 dynamic texture ,and want add second texture color to first texture color But just where first texture color alpha is not 0 something like inverse transparncey i add two pic link to show what is my mean: TO just collisions part must add…
mX64
  • 388
  • 1
  • 7
  • 24
4
votes
2 answers

What kind of projection and camera to use for 3D/2D top-down view?

I am probably going to smack myself in the face once the answer becomes clear, but I'm afraid I can't figure out what to do with my camera in order to effectively mix scrolling 2D and 3D objects. Currently I'm using a displacement camera, which I…
A-Type
  • 1,148
  • 1
  • 7
  • 17
4
votes
7 answers

Xna 4.0 projects in XNA 3.0

Is there a way to open XNA 4.0 projects in XNA 3.0 without installing XNA 4.0.
Vishal
  • 41
  • 1
4
votes
1 answer

Is it possible to define the asset name in a custom XNA content processor?

Normally, when loading content using XNA's Content Pipeline, the compiled .xnb files are accessed using an assigned "Asset Name" that can be defined in the Visual Studio GUI. By default, this name is the same as the content's filename sans…
Shaun Hamman
  • 2,287
  • 4
  • 21
  • 33