Tagged Questions
-1
votes
1answer
33 views
1
vote
0answers
30 views
How to gradually decrease opacity of model?
I have been searching for this matter for a long time and slowly I begin to think that this option is not available in XNA for Windows Phone.
I am trying to get a 3D-Model to be drawn at 50% ...
-1
votes
1answer
43 views
Isometric Map Rendering Incorrectly [closed]
I've currently been trying my hand at Isometric map rendering via the tutorial over at XNA resources; http://www.xnaresources.com/default.asp?page=Tutorial:TileEngineSeries:4
However, unfortuanely ...
-1
votes
1answer
58 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
0answers
38 views
Model disappears when drawn twice?
I have a game character I load once for the original model variable.
But when I link that asset (the model file) to an other model variable
during runtime (and load it during runtime), the original ...
-4
votes
0answers
43 views
The program '[756] TaskHost.exe' has exited with code 0 (0x0) [closed]
What is the cause of this error? I've commented part of my code, and after it application exits without any errors or warnings. I've commented part of Draw Method in one of my Menus Option in game. It ...
-3
votes
0answers
33 views
Farseer: Character jumps weird [closed]
I have a little problem with jumping. For example, the character(Mario) jumps from the top of a tile. The character is now in the air and not touching a tile. After that, he touches the right or left ...
2
votes
1answer
108 views
How do I make a tile passable in one direction only?
I want that my character can jump through some of the tiles, like Mario does in this video:
http://www.youtube.com/watch?v=zIPYzbNrNhc
In this video, Mario jumps up through orange platforms, but ...
0
votes
3answers
121 views
How do I move a sprite to the mouse position?
So, I'm trying to make my sprite walk to the X-coordinate of my mouse click.
This is my code:
currentMouseState = Mouse.GetState();
MouseState mouseState = Mouse.GetState();
...
-3
votes
0answers
34 views
Farseer: Difficulties with polygons [closed]
I want to create a polygon but I get many error messages. I don't know what to change.
What is wrong?
The size of my texture(polygonTexture) is 350x150 pixel. ...
-2
votes
1answer
31 views
Farseer: are you missing a using directive or an assembly reference?
I want to create a polygon in Farseer. I found an example in the documentation but it's not working because I get this error message:
The type or namespace name 'Vertices' could not be found (are you ...
0
votes
1answer
47 views
Farseer: Ball is not getting slower
The ball is not getting slower when it rolls over a straight platform. I added friction but that changed nothing, the ball still gets not slower. I want that the ball gets slower and slower and stops ...
0
votes
1answer
62 views
Farseer: Ball is not bouncing realistically
I created a ball that is rolling over platforms. When it falls from one platform to another, it should bounce just like in real life, but the ball keeps bouncing constantly and I don't know how to ...
1
vote
2answers
61 views
XNA spritebatch.Draw: Which part gets colored by the color parameter?
Which part gets colored and how can I control it?
I have a rounded block and my goal is to have the center filled with a certain color chosen by that parameter. Here's the picture:
...
0
votes
0answers
28 views
How to access translations of a model?
I have an animated Model, which I process with the SkinnedEffectProcessor.
I am generally asking, how I can access translations of a model, during animation.
All in all it's always a BoneTransform I ...
1
vote
1answer
111 views
Does XNA have a built-in GUI library?
Does such a thing exist or do I have to code one?
My project needs textboxes, buttons, input capture, timings for "press and hold keys" and so on. These are quite standard for a GUI library but hard ...
0
votes
0answers
27 views
Farseer physics engine: The name 'ConvertUnits' does not exist in the current context [duplicate]
http://digitalerr0r.wordpress.com/2012/03/11/farseer-physics-in-xna-4-0-for-windows-phone-1/
I tried this Farseer tutorial but I always get that error message in the following lines:
...
0
votes
2answers
92 views
C# XNA AABB vs AABB collision resolution, AABBs ghost through each other
I've been learning a bit of collision resolution through a tutorial here and I can't seem to get the AABBvsAABB resolution working, I have CirclevsCircle and AABBvsCircle resolution working with the ...
-4
votes
1answer
69 views
How to use a physics engine for collision detection? [closed]
I want to use Box2D.XNA or Farseer for collision detection in my 2D game, but I don't know how to start. I added Box2D.XNA to my solution, but I don't know how to create rectangles, circles or ...
3
votes
3answers
118 views
XNA Collision is quircky/wobbly, how to improve?
I am sorry if this was already answered but I couldn't find the answer.
So I am doing a tile based platformer and when I was making collision I had quiet a struggle I looked here and googled for ...
1
vote
2answers
95 views
Winform + XNA (Microsoft Example) - Issues with Drawing Texture2D
Before I get started I would just like to say that I have been using the Microsoft Winform + Xna examples found here:
WinForms Series 1: Graphics Device
I think I somewhat understand how its working ...
-1
votes
1answer
37 views
On occasion game fails to catch end of screen transitions [closed]
When the player hits the edge of a screen the old screen slides down, and the new screen slides in with them landing on the opposite side from where the transition started. On occasion the bottom of ...
-3
votes
2answers
330 views
How to preload a vast amount of models?
This is more a theoretical question,
during runtime, my game runs smooth without any hickups. But as standard game-objects, my game contains collectibles such as coins (which are rotating Models).
...
-1
votes
1answer
82 views
How to add a timer - Visual Studio, XNA (C#)
I'm wanting to add a timer in an XNA game using C#. The ultimate goal is to increment a score in a game every second by 10 points. As of now the score stays at zero. Watching YouTube videos is proving ...
0
votes
1answer
55 views
Refactoring an XNA map redraw [closed]
In the draw step I have different content loading depending on which side of the screen the player exits from. I'm trying to refactor this into a single method for handling the updated content, but I ...
1
vote
1answer
87 views
Rectangle collision is not working correctly [closed]
I have difficulties with the rectangle collision. My character can go through the right side and through the bottom of each platform rectangle. I guess their is a mathematical problem with the ...
0
votes
1answer
61 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 ...
0
votes
0answers
44 views
How can I draw an Xbox Avatar?
I want to replace the main character of my 2D game by an Xbox avatar. How can I do that?
How can I add an avatar to my project?
How can I draw an avatar?
For example, I draw my main character like ...
-1
votes
1answer
72 views
Program closes without Exception
I'm using XNA 3.1 ( .NET 3.5 ) and my program closes without any warning, errors, or code instructing it to do so. I looked in the output, and there aren't any obscure messages outside of telling me ...
0
votes
1answer
47 views
Managing Background Sprites
I tried asking in Chat and no one answered, so the question goes here.
Anyone have advice for loading background Sprite maps? I'm trying to do it as efficiently as possible for a grid of 25 ...
-1
votes
0answers
28 views
XNA crash when publish
I've made a 2D game, it runs fine when debugging but when I publish and install the game prompts an error and fails to run.
I have three text files in my game which store various game data - ...
-1
votes
1answer
89 views
MonoGame iOS and Game Performance [closed]
My friends and I are developing a game for Ipad/Iphone using the monogame Framework.
We are at the final stage of the development and we are having some issues concerning the deploy of the game.
This ...
1
vote
3answers
152 views
Splitting tileset into individual tiles
I'm trying to split a tileset (from here) into individual tiles.
For debugging purposes I wrote some code to split the tileset into individual tiles and display them on screen, but some aren't being ...
-2
votes
0answers
52 views
Loading specific parts of arrays in XNA
I'm working on a 2D "engine" of sorts in XNA and am now adding larger levels, but to do this I need to be able to only load some of an array into RAM for a chunking system.
At the moment I've got a ...
2
votes
0answers
62 views
Getting a uint color array from a portion of a Texture2D
I'm currently using the Farseer tools to create a body from a Texture2D. However, my texture is a spritesheet and I need to get the uint array containing the colors from a portion of the full ...
-1
votes
0answers
46 views
Sprites failing to Update [closed]
I have a simple 2D top down survival game where the player simply has to 'run away'/ not collide with the enemies on screen for 30 seconds each round.
After every increment in level the number of ...
3
votes
0answers
111 views
Legality, implementation, and viability of using the BSP map format in a procedurally generated XNA game?
First off, this is not a "which technology should I use" type of question, but rather a question about the viability (And legality, and how to implement) BSP maps into an XNA game.
The legality part ...
0
votes
1answer
105 views
Recommended collision response needed [closed]
In my game, I have
Player class
Enemy class
Wall class
GameComponents class ( Which is the base class for Player, Enemy and Wall)
The rules are
Enemy chase Player, if collided with Walls, ...
-7
votes
2answers
43 views
How do i create a Xna 4.0 Creating BoundyBox [closed]
I understand what other people have done and when creating it myself it just seems to go wrong or the version is different so doesn't work in first place. Any easy code for this?
-1
votes
0answers
115 views
C# XNA: How do i create simple 2d TileEngine [closed]
i want to create a simple tileengine for a small rpg-ish game.
I have a picture with 7 different tiles each at a width and height of 48px.
What i want to do is to split the image into those seven ...
-1
votes
1answer
54 views
XACT support outside of XNA?
I was building a new game in Monogame when I realized that it didn't have XACT support like XNA did. I was wondering if anyone knew another framework that could be used with or instead of MonoGame ...
1
vote
1answer
68 views
graphics.GraphicsDevice.Clear strange result (XNA)
I have such Execution:
graphics.GraphicsDevice.Clear(new Color(255, 0, 0, 0));
Alpha is 0. So why it draws me Red color?
graphics.GraphicsDevice.Clear(new Color(255, 0, 0, 255));
Also draws the ...
-1
votes
2answers
78 views
Loading a texture2D in a separate class using c# and xna [closed]
I have been adding a bunch of textures to my game in xna so i decided to make a separate class to load and draw the textures.
this is what i have so far
using System.Text;
using ...
1
vote
2answers
138 views
Resolving 2D Collision with Rectangles
For about a week I've been trying to grasp the basics of collision, but I've been driven to the point of wanting to just give up on everything when it comes to collision. I just don't understand it. ...
0
votes
0answers
64 views
How can I efficiently store Vertex data in C#/XNA?
I am creating a terrain system using voxels in a somewhat minecraft-like style and I was wondering if there was anything I could do to increase the number of vertices I am able to store (and therefore ...
0
votes
1answer
55 views
Putting a 2d camera into a gamestatemanagement sample [closed]
Hello everyone i am new to xna and i am trying to implement a simple 2d camera that follows my sprite around the level i am using a gamestatemanagement so i have the basic platformer with screen ...
1
vote
3answers
132 views
Creating an update “Tick” on tiles for simulating growth of plants
In my 2D tile based platformer I have added plants to be able to farm such as the simplest, grass, to other things like corn. Now each of these speacial tiles must be updated to show how much it has ...
-5
votes
1answer
91 views
camera2d class will not work [closed]
using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using ...
-2
votes
3answers
139 views
Can I use a list to spawn enemies? [closed]
I need to have about 10 enemies in my game, can I use a list to spawn them all in?
This is what I was working on but it only spawns 1 enemy in the coordinates of the last added to the list.
Here are ...
0
votes
1answer
48 views
What is the point of the XNA.Input.Button enum?
I am trying to make an InputManager class that will let me basically bridge XNA's various input methods and do a corresponding action in my game. Part of this is designing different keybindings.
...



