Open-source implementation of Microsoft's XNA 4, for Windows, Mac, Linux, Android, and iOS, among others.

learn more… | top users | synonyms

1
vote
1answer
113 views

How to fix my camera collision, C# XNA

I am having some weird issues with my camera. I am trying to make it so it is a first person camera, that when the user presses the W or Up key, it moves towards where the camera is looking. My issue ...
0
votes
0answers
22 views

How to silence the Windows Asterisk sound?

When pressing keys while my game is running, Windows makes the "Asterisk" or "Exclamation" sound that you hear while trying to use the keyboard on a window that doesn't have focus on an input control. ...
0
votes
1answer
56 views

How to combat exponential growth in sprite messaging?

In my 2D platformer game, I have a number of sprites moving around the world. When two sprites collide with each other, I calculate how deep the collision is and then call a virtual method on both ...
0
votes
0answers
19 views

Mesh Collider in Monogame

I try to implement a few complex objects and want to achieve that they collide based on everything the player is able to see. Therefore I am not able to use the basic BoundingSpheres. Has anybody an ...
0
votes
0answers
74 views

I want to sell my game ideas [on hold]

I have multiple ideas for video games that will alter today's thinking, and i want to sell my ideas. Or in better approach i would like to partner up with a company and make my vision a reality. How ...
0
votes
0answers
16 views

Stack, list or array for screen/state management. (XNA/MonoGame) [on hold]

I am wondering the best approach to manage game state in monogame. My first thought is have a screen class and keep them in a collection with either isFocused properties or use like a stack and the ...
1
vote
2answers
74 views

Get the difference between 2 matrices

Hi I'm using C# and MonoGame, and have the world matrices of 2 objects. I need to get the difference between them, so I can effectively parent the second object onto the first. The aim is to get to a ...
0
votes
0answers
19 views

Mobile game development [on hold]

I am new here and dont know much. I would like some advice, from experienced people, about where to begin to start developing mobile games, like which languages to learn, books, resources etc. I am a ...
1
vote
1answer
90 views

XNA4\ Monogame 3d Collision detection Help please

i have been trying to get 3d collision working for a while and i think(hope) you people can help me so for my project i have created a 'sprite3d' kinda class which is called ModelEntity and there ...
0
votes
1answer
28 views

Don't understand how paddle location is tracked; using XNA tutorial

Wanting to learn how to make games, decided to use Monogame. Have pretty light programming knowledge, so I apologize beforehand for my ignorance to this surely obvious oversight. Following a ...
2
votes
2answers
142 views

Touch taps only on very short flicks on Win7 with Monogame

I have an application on win7 which needs to support touch and mouse input using monogame. But reading touch taps proves to be a very hard thing. The TouchPanel is initialized like this: ...
1
vote
1answer
80 views

Problem disposing content from a screen's content manager

I have a problem with my game. I am using multiple classes for different screens, for exemple: Main Menu is one screen, When playing is another, and so on... I decided to use multiple ...
0
votes
1answer
44 views

Iris-wipe shader not properly working

I'm working on creating an iris wipe transition, like the ones you see in old cartoons - a fully transparent circle closes on a certain point, leaving a full screen of a solid color. Additionally, the ...
0
votes
1answer
39 views

MonoGame creates a copy of song files in XNBs location

I'm having a problem. I've been adding .wma files to the Content Pipeline app to be used as my game's background music. But today when I opened the solution/project/content/bin/music folder I spotted ...
0
votes
1answer
66 views

How can library classes access SpriteBatch?

I have a spritebatch in my primary game component in a game project: public class GameRoot : Game { private SpriteBatch mySriteBatch; public SpriteBatch MySpriteBatch { get { return ...
3
votes
1answer
135 views

In unity 5 export package is not working correctly

I am using unity 5. I Created an objects with layer names. I tried to export a package. After Exporting, i import the package in new project and ran the project its not working. observed that objects ...
1
vote
1answer
47 views

Rendering issues in Monogame when using shaders

I am currently fiddling with Monogame, trying to work with Shaders and I have encountered a really weird issue. If the first ever draw in the application's lifetime is with a custom shader all further ...
0
votes
0answers
18 views

HLSL texture not reading from register S1

I made a simple post processing shader, that draws scanlines. This all works perfectly. I wanted to make it a bit more interesting by applying a shadowmask instead so I wanted to pass a texture to the ...
0
votes
1answer
248 views

Error on MonoGame Content Pipeline: Texture Importer Error

I just encountered this kind of error when using the MonoGame Content Pipeline and it's my first time to use it to convert png to xnb files (I use a stand alone app for converting files to xnb in the ...
4
votes
1answer
104 views

Monogame project runs in VS but hangs when run via .exe

I've been working on a monogame project for a little over a week and had no problems. Today I went to test out the project outside of Visual Studio, by running directly from the .exe in the release ...
0
votes
2answers
94 views

how to create a play button and load game on play? Monogame

I need help with understanding how I can make my function work and load the game when pressing play. At the moment, when I press Play, it won't update or missing update o knowing the button is ...
0
votes
1answer
84 views

How to handle collision detection

So the way that I am doing the movement for my game is that you can left click a unit (which is just a rectangle object), and then it is selected. While it is selected, you can right click and that ...
4
votes
1answer
151 views

How can i convert non-canvas mesh collider object as canvas mesh collider object

I am new to unity i created a character object in Maya and stored it as char.obj, then i import the object in unity. the char1 object is not colliding with any other unity objects like cube, plane, ...
0
votes
1answer
24 views

Monogame movement Handling

I was curious if anyone could explain how I would be able to create simple movement handling in monogame. So far I have a red block which I tried to move by using a loop but that didn't take any ...
1
vote
1answer
260 views

Modularization in a project

I'm writing a C# game in Mono, and I want the game to be as modular as possible. I've started by writing the whole Item (inventory) System of the game in a seperate .dll library But I've hit a ...
0
votes
2answers
49 views

How can I use an HLSL pixel shader to peek at other pixels?

I think this is like a pixilation shader but I had a hard time trying to find one online, and one that I could manipulate specifically. I want to create a pixel shader for my monogame project that ...
0
votes
1answer
354 views

How to get plausible platformer physics with Farseer on MonoGame/XNA?

I am creating a 2D Vectorial (made of polygons, not tiles !) platformer using MonoGame and Farseer Physics Engine. Everything works perfectly, except the movement of the character which doesn't feels ...
0
votes
1answer
73 views

Rotation Continuity help

First the issue im having: Basically its the fact that the angles of a circle aren't continuous, they rise from 0 to 2pi then immediately fall back to 0. I want to make a game where the player ...
3
votes
0answers
52 views

(Monogame) Camera does not travel the way it is rotated

I've implemented camera control with mouse and keyboard. My problem is that camera goes crazy when I'm using mouse and camera does not travel the way it is rotated. Could you explain me why and how to ...
0
votes
0answers
16 views

SharpDX.SharpDXException error when using vector as parameter

I placed a GraphicsDevice and width/height into the new RenderTarget2D parameters as it ask for but it keeps throwing an error. Does any one know why? Error: Additional information: HRESULT: ...
0
votes
1answer
95 views

Different game resolutions on emulator and on a real device (which has the same resolution) on Windows Phone 8

I have a big problem with game resolution, when I'm running my game on emulator (which theoretically has the same resolution as my real windows phone device: 800 x 480). I'm making the game with ...
0
votes
1answer
58 views

Code for inventory function not working

I'm working on an inventory, and I've ran into some problems. Some code in my CollisionDetection class doesn't work properly. My CollisionDetection class contains functions that involve mouse and ...
0
votes
2answers
23 views

Combe Rectangle and Vector movement

I'm completely fresh to game development and came up to a problem which I'm not sure how to solve. I have textures which are quite too big for screen. So i used SpriteBatch.Method which uses rectangle ...
4
votes
1answer
118 views

Monogame Startup Memory Spike

I am currently porting a game from WP7 using XNA to WP8.1 using MonoGame. I have been putting considerable effort into optimizing my game to be under the 185MB memory limit for low-memory phones. I ...
0
votes
1answer
19 views

XNA/MonoGame Collisions between two boxes don't work as expected

I have the following problem: I have two GameObjects (one is static, the other is the player). Both of them have one BoundingBox that surrounds them, and a List that contains more BoundingBoxes for a ...
2
votes
1answer
26 views

MonoGame renders texture in an almost compressed looking way

I was working on a game in MonoGame, which I have been doing for quite some time now. As I was implementing UI, I was noticing some sort of weird scanlines. Investigating further, to my surprise my ...
0
votes
2answers
92 views

XNA/MonoGame creating a player

After some fine-tuning on my game's GUI I am finally ready to begin with the gameplay. But that's a tall order. My game will be something like a 2D platformer with RPG elements like collecting armor, ...
1
vote
1answer
80 views

Fade to first level, on click

Good evening all, about to pull my hair out because I cant figure out why I keep getting this error. The problem is this, I need the player to click on the start button, then, the screen will fade to ...
0
votes
0answers
21 views

Clip on model XNA

I'm currently doing my water plane system (with waves etc...). Actually, I have a heightmap with a waterplane on it; refraction and reflection working perfectly, but now I want to add objects. So ...
1
vote
0answers
26 views

Monogame + Render Target + antialiasing doesn't work

Is there any proper way to use antialiasing, while rendering to a RenderTarget2D and using Monogame? I do this: renderTarget = new RenderTarget2D(GameData.GraphicsDevice, pp.BackBufferWidth, ...
4
votes
1answer
106 views

Can I use xna tutorials to learn monogame?

Can I use xna tutorials to learn monogame? I can't find any good monogame tutorials but there are tons of xna tutorials available and from what I have seen they are pretty much the same thing.
1
vote
3answers
336 views

How to restart the game when pressed enter in XNA

If the following code allows the game to exit when pressed esc .. if (gamePad.Buttons.Back == ButtonState.Pressed || keyboard.IsKeyDown(Keys.Escape)) { this.Exit(); } Then this code should ...
0
votes
0answers
55 views

Side-Collision for Breakout game where ball moves fast

So I've been trying to make a breakout clone, which is my first attempt at a graphical game, I ran into some problems, and was hoping that this community could help me. I've got most of the mechanics ...
6
votes
1answer
249 views

How to do Chromatic Aberration on a transparent background?

I have a problem with a chromatic aberration shader effect... If I produce the effect on a white background I get exactly what I want: But if I do the same effect on a transparent background I get ...
0
votes
1answer
117 views

Monogame - Sprite sheet animation

I have a sprite sheet that contains a character walk cycle, and I have made a player class that allows the player to move and cycle through the walk animation, however the animation only works whilst ...
0
votes
0answers
13 views

How to do an xBR or hqx filter in MonoGame?

I have been trying to implement an HD filter (xBR or HQX) in my MonoGame game project but so far got no success. I have checked out this question, but the shaders provided in the answers don't seem to ...
0
votes
1answer
27 views

Collectiion was modified(monogame) [closed]

I did use this...and when i changed Screens it gave me this error : Collection was modified; enumeration operation may not execute. foreach(var screen in ScreenList) Inside Base Screen public ...
0
votes
0answers
51 views

Game crashes when sound is finished

I'm trying to code a simple audio playback test game (which will be used in my actual project), and everything works fine, except for the fact that after the audio has finished playing, the game will ...
0
votes
0answers
54 views

Water reflection xna

I'm actually trying to do the reflection map for my water component, but even following the riemer's tutorial about reflection map the formulas provided doens't work. ...
0
votes
1answer
37 views

How to limit resolutions display in monogame

I can Add resolutions to the list. Here is part of code. List<Vector2> resolutions = new List<Vector2>(); foreach (var item in GraphicsAdapter.DefaultAdapter.SupportedDisplayModes) { ...