0
votes
0answers
16 views

What's the idea on the base of rendering camera on 2D platformers games?

I'm programming a platformer 2D game, and I'm just wondering about how is done the right-left scrolling of the camera in a game like this. I mean, there is a background that need to change, there ...
0
votes
1answer
5 views

Farseer: RemoveBody is not working

I want to remove bodies after they touched the character(playerrect). But the bodies get not removed. I set a breakpoint in the following line but it doesn't get yellow: ...
1
vote
1answer
29 views

Farseer: How can I remove a body?

I have many sensors(coins) in each level and I want to remove the sensors(coins) when the player rectangle(Mario) touches them. I check in OnCollision if Mario touches a coin, if he touches it, it ...
-2
votes
1answer
55 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 ...
0
votes
1answer
21 views

Farseer: Difficulties with ContactListener

How can I register the ContactListener in XNA? In the box2d manual is written: 9.4 Contact Listener ... At run-time you can create an instance of the listener and register it with ...
-2
votes
1answer
66 views

C# Stack<> Problem [closed]

I'm trying to change List<> to Stack<> however I'm having a hard time figuring out. A snippet of my code on where my issue occurs is: private Stack<Gem> gems = new ...
1
vote
0answers
37 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
45 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
60 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
39 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
46 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
36 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 ...
3
votes
1answer
115 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
132 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
35 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
34 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
48 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
65 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
66 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
31 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
118 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
102 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
123 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
104 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
377 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
86 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
92 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
45 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
29 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
93 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
162 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
66 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 ...
3
votes
0answers
112 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
106 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
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
79 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
139 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
65 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
56 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 ...

1 2 3 4 5 17