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
0
votes
1 answer

Is it possible to playback a podcast from an XNA Or Silverlight application on Windows 7 Phone?

Is it possible to enumerate audio and/or video podcasts that exist locally on a Windows 7 Phone? I'd like to play an audio or video podcast in my application.
Michael Kelley
  • 3,579
  • 4
  • 37
  • 41
0
votes
1 answer

xna 4.0 visual studio 2010 error

when i try and compile a solution i recieve the following error error x3539 ps_1_x is no longer supported (68,23); ID3DXEffectCompiler;;CompileEffect: There was an error compiling expression ID3DXEffectCompiler: compilation failed I believe this…
DK10
  • 168
  • 1
  • 5
  • 19
0
votes
1 answer

Making a sprite shoot

I have a sprite that moves on the bottom of the screen from left to right if you press down left and right key. I want to be able to shoot something (any sprite I want) from the sprite that is moving on the bottom of the screen and have that sprite…
Claud
  • 1,065
  • 3
  • 26
  • 38
0
votes
1 answer

C# Vector2 How to move an object toward an angle

I want to move an object to the given angle, But it moves only up, and down, only Y axis. Vector2 unitV = new Vector2((float)Math.Sin(player.angle), (float)Math.Cos(player.angle)); unitV.Normalize(); player.model.Position +=…
0
votes
1 answer

License Agreement for XNA program

I was just wondering what license agreement I should include in an XNA Framework game set-up file. Currently, I'm using GNU license, but I'm not sure if this is appropriate or not... I just want to make sure that I am using the correct agreement, or…
Phillip Macdonald
  • 434
  • 1
  • 4
  • 16
0
votes
2 answers

Loading files during run time in XNA 4.0

I made a content pipeline extension (using this tutorial) in XNA 4.0 game. I altered some aspects, so it serves my need better, but the basic idea still applies. Now I want to go a step further and enable my game to be changed during run time. The…
NDraskovic
  • 706
  • 2
  • 22
  • 50
0
votes
2 answers

Can't reset my gametime to zero in XNA

I'm creating a game with XNA 4.0 and I have a problem with resetting the game time in my game, the problem is I'm using this code for adding my objects in game: Timespan prevSpawn = timespan.zero; Timespan objectSpawnTime = timespan.fromsec(5); if…
Max
  • 1
  • 1
  • 3
0
votes
1 answer

XNA 3.0 to 4.0 conversion causes a viewport 'merging' to go awry

I have an old XNA 3.1 game with a 2D camera, that I recently converted to XNA 4.0. I had the camera zoom by creating a new viewport, setting the bounds to the camera width/height, and then kinda 'merging' them like this: Viewport viewport = new…
user961794
  • 111
  • 11
-1
votes
2 answers

Displaying seconds in XNA with Keypress?

I following a guide to display seconds in XNA, but was now wondering how to make the seconds count-up ONLY when I press Spacebar. So, when I start the game, the seconds don't start automatically, but only when I press the spacebar. Is it possible to…
Adz
  • 2,809
  • 10
  • 43
  • 61
-1
votes
1 answer

Detecting a Key Press in XNA 4.0?

http://msdn.microsoft.com/en-us/library/bb203902.aspx I've got a title screen called 'TitleScreen' in my game. I'm following the up^ linked tutorial, but on this argument, I want to make it so if (newState.IsKeyDown(Keys.Space)) { …
Brunaldo
  • 49
  • 2
  • 7
-1
votes
4 answers

Learning XNA for Game Development. Is it worth It?

It seems that most of the popular games in the world are developed using C++. But Microsoft's game platform, XNA Studio is based on programming in C# and I didn't find any popular game which was developed using XNA. Also there are fewer Ebooks you…
Nipuna
  • 6,846
  • 9
  • 64
  • 87
-1
votes
1 answer

My program is being reported as a high-level security threat by AVG?

I recently started distributing my XNA 4.0 game to people. On computers with AVG installed, it detected this game as a false positive virus with a high security threat. I have no idea of what is going on. All I know is that when it happened, there…
Mathias Lykkegaard Lorenzen
  • 15,031
  • 23
  • 100
  • 187
-1
votes
2 answers

c# windows forms and xna - high CPU usage

I have an issue with xna and windows forms. I´ve developed a control with xna, and i used that control inside a windows form. My problem begins when i open a new form and it fully covers the control using xna. When that occurs the cpu usage goes to…
Müsli
  • 1,744
  • 7
  • 27
  • 50
-1
votes
2 answers

CS0433 Monogame and Xna

Added Xna.Framework.Storage but got error: Error CS0433 The type "Matrix" exists in both "Microsoft.Xna.Framework, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 842cf8be1de50553" and "MonoGame.Framework, Version = 3.8.0.1641, Culture =…
-1
votes
2 answers

XNA 4.0 Frustum Culling

I need to add frustum-culling rendering technique to my project but I don't know how to do it. Can someone share some code/explanations so I'll have a better idea of how to do it?
Omer Eli
  • 19
  • 7