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

TouchPanel.IsGestureAvailable() is always false

here is the code the debugger enters the handlinput region but never clears the touchpanel.isgestureavailable, even when we tap the screen thanks for ur helpin advance :) #region Handle Input public override void HandleInput(InputState…
Corleone
  • 361
  • 1
  • 3
  • 6
-1
votes
2 answers

System.Drawing in XNA

I am currently working on a 2D pinball game utilizing XNA and VS2010, and have run into problems. First of all, I have two paddles, each with a bounding box. As far as I can tell though, it is impossible to rotate a Rectangle unless using the draw…
-1
votes
1 answer

trying to do image menu in XNA program and stuck at constructor error

this is the code for ImageMenuGame.cs. trying to do menu in Xna, practising for game development and it is showing error as constructor error. I am New to XNA. Also pasting the screenshot along with the code. thanks in advance. namespace…
madhu kumar
  • 786
  • 1
  • 12
  • 46
-1
votes
1 answer

Converting from XNA3.1 to XNA 4.0

How to convert this code part from XNA 3.1 to XNA 4.0. If someone knows please help. public ModelLightMesh(Viewer3D viewer, Vector3 position, float radius, Color color, float u0, float v0, float u1, float v1) { var verticies = new[] { …
Tasleem
  • 11
  • 2
-1
votes
7 answers

Method: Not all code paths return a value

Ok so while working on an XNA 4.0 game I'm developing I came across this problem with one of my methods which is getting the error 'not all code paths return a value' and well this has been driving me insane for the past couple hours. private…
Kyle
  • 23
  • 3
-1
votes
1 answer

Drawing a class multiple times on the screen XNA

I am making a simple brick-breaker type game. I have a ball paddle class, and i have both moving around the screen fine. I also have a brick class, of a brick, that when it is hit with the ball it dissapears. Now i want multiple bricks on the screen…
HTML_guy
  • 1
  • 3
-1
votes
1 answer

How to make 3D racing game with XNA?

I would like to know how to make an 3D racing game with xna. I never used it but I want to learn starting with that kind of game. Does anyone has any ideas where I can find any tutorials to start with? Or what shall I do? Thanks in advance,
Alex
  • 23
  • 3
-1
votes
2 answers

Error on xna "is inaccessible due to its protection level"

I am getting an error when I try to get the mouse position. This is my player class. I am trying to make the player sprite move by mouse cursor class Player : Actor { public MouseState mState; EnemyManager enemyManager; public…
Ndr Krty
  • 3
  • 3
-1
votes
1 answer

Texture2D as parameter for Class constructor

I'm making a Level.cs class that should take a background image (texture2d) as a parameter for the Level class constructor. But it wont accept the variable 'back'.. What do I do? public Level(Texture2D back ,ContentManager content, EventHandler…
Danny
  • 1
-2
votes
1 answer

2D game tiled collision detection

I've got something like this: // checking on which tile are players corners // ignore this big mess below, please. It can be put in smaller // equations, but for now it does its job left_downX = ((int)Position.X) /…
Neomex
  • 1,650
  • 6
  • 24
  • 38
-2
votes
1 answer

Having errors running JigLibX 0.3.1 on XNA 4.0

Warning 1: The referenced assembly "Microsoft.Xna.Framework.Content.Pipeline, Version=4.0.0.0,Culture=neutral, PublicKeyToken=842cf8be1de50553" could not be resolved because it has a dependency on "Microsoft.Build.Utilities.v4.0,…
muaaz
  • 1
  • 1
-2
votes
1 answer

Returning null from a xbox360 XNA api method. Bad practice?

I always considered returning a null object to be bad practice for a method call that is to be responded to. Lets say Int GetFieldByID( String IDString ); so Int m_MyReturnedID = GetFieldByID( "myGamerTag" ); Now, I'd assume that if the ID could…
Gary Paluk
  • 1,038
  • 1
  • 14
  • 28
-2
votes
1 answer

XNA Simple Tile Map collisions

I'm new at this and I'm making a very simple 2D platformer with a level is loaded from a text file. I'm having trouble to try how to figure out how I can have my character sprite collide with the tiles. This is an example of a .txt that my game will…
-2
votes
2 answers

XNA 4.0 2D space shooter

I am a new first year student to XNA game studio. I have to make a game for this years course, nothing fancy its supposed to be a customized version of the Space Belt Assault game, the problem i have is the course is a find it out for yourself type…
mark jones
  • 15
  • 3
-2
votes
1 answer

Why does my automatic RPG inventory grid not work?

Here is my situation. I have four classes: Inventory.cs, InventoryTab.cs, ItemDatabase.cs, BaseItem.cs (and a few items that derive from BaseItem such as Weapon, Consumable, etc) Inventory creates new InventoryTabs (Consumable, Weapon, Armor), and…
Shyy Guy
  • 232
  • 3
  • 18
1 2 3
79
80