Questions tagged [monogame]

MonoGame is an OpenSource implementation of Microsoft's XNA 4 APIs that allows developers to build games that run on Android, iPhone, iPad, Mac OS, Linux, PlayStation Mobile (2D only), Windows 8 Store, Windows Phone 8, and OUYA, while reusing their existing XNA code that runs on Windows, Xbox 360, or Windows Phone 7. It supports both OpenGL and DirectX rendering.

MonoGame is an OpenSource implementation of Microsoft's XNA 4 APIs that allows developers to build games that run on Android, iPhone, iPad, Mac OS, Linux, PlayStation Mobile (2D only), Windows 8 Store, Windows Phone 8, Windows 10, and OUYA, while reusing their existing XNA code that runs on Windows, Xbox 360, or Windows Phone 7. It supports both OpenGL and DirectX rendering.

Recent versions of MonoGame includes a bundled content pipeline. This eliminates the need to use the XNA 4 Content Pipeline, which is not available for all platforms. The new MonoGame pipeline allows for management of assets completely independent of XNA.

Information:

Code:

Questions or Problems:

1862 questions
0
votes
0 answers

Running monogame app on other pc than developed

I would like to run monogame game on other pc than it was developed on. When i execute .exe file process starts and dies after 2 seconds without any output (even in command line). I tried to attach openAL libs to project, to install openAL, to…
Ghostkod
  • 73
  • 2
  • 6
0
votes
1 answer

XNA Bullet Hitbox wont follow the sprite thus causing problems with collision

Im making a spaceinvaderisch kinda game in XNA/Monogame Everything was going great until I encountered this problem. Ive been trying to fix the bullet hitboxes for days but to no succes. My problem lies in the fact that the hitbox doesnt move with…
0
votes
1 answer

Center text when using BmFont (MonoGame)

Is there a way to center text when drawing using BmFont? I'm using the code from here: Using a BMP image as font in Monogame The only code change I did was that I added a _TextWidth int to DrawText which uses DX - X to get the text length, then a…
user5751033
0
votes
2 answers

XNA / Monogame How to detect when the mouse hovers over a button

I'm currently studying programming and am making a small game in monogame. However, my progress has run to a stop at the menu, I'm trying to work out how to detect if my mouse is above a button, but I'm not able to figure out how I can check this…
E. Flo
  • 13
  • 1
  • 3
0
votes
1 answer

Something like dynamic array

Guy please I want to do something like dynamic array but I don't want to use List. public Texture2D[] spritHouses; protected override void LoadContent() { LoadTextures(spritHouses, @"Sprits/Guns/", "Big", "Medium", "Small"); //The array…
Abushrek
  • 25
  • 1
  • 6
0
votes
1 answer

C# - Entry point check for OS

So my Program.cs looks like this: using System; using System.Windows.Forms; using myProj.GameScreens; namespace myProj { #if WINDOWS /// /// The main class. /// public static class Program { static…
Johny P.
  • 648
  • 1
  • 9
  • 31
0
votes
1 answer

XNA game frozen

I was following a tutorial for creating a 2d space shooter. It was working fine until I added code to spawn enemy mobs, now it just runs but it's frozen. I can't understand why it wont work. there are no errors anywhere or anything like…
Baccy
  • 13
  • 4
0
votes
2 answers

Monogame Content Load Exception

Made a game in Monogame, but when I run it I get a ton of output saying there are a bunch of DLLs missing. The game runs fine in the sense that it doesn't crash, but I'll freeze for a second when I get one of these errors. It usually happens when I…
Gurman8r
  • 301
  • 1
  • 4
  • 19
0
votes
1 answer

Light SpriteFont colors in MonoGame/XNA are low quality

I am creating a game about internet safety but when using SpriteFont the light colours such as white or light blue come up really grainy and low quality. Black on the other hand is really clear. I was wondering if there is a way to fix this? Image…
OpalRing
  • 15
  • 1
  • 4
0
votes
1 answer

XNA 2D space shooter bullets acting weird

my bullets are coming from behind my ship and slightly to the left. I followed a tutorial but I cannot figure out why it is doing it. The bullets also won't go all the way to the end of my screen. Sorry if I have posted this in the wrong format or…
Baccy
  • 13
  • 4
0
votes
1 answer

How do I make DrawString() take the current viewport into account when drawing, like Draw() does?

Currently, all my textures are being scaled and move into the right position when the viewport that I draw them in changes size or position (I don't have to do any calculations myself to do this). However, when I use DrawString() (while still in the…
Erra
  • 93
  • 6
0
votes
1 answer

monogame weird grid texture

I have a problem using DrawUserPrimitives for my very first monogame project. I am trying to draw multiple tiles that should look like a terrain. And it works...well somehow. This is how it looks like: My terrain -_-. Sorry, I cant post it directly…
idunno
  • 71
  • 8
0
votes
0 answers

Missing method set_RenderOnUIThread

I'm making a C# game using Visual C# Studio 2013 Express with Mono-game. when i debug my solution i am getting errors on following lines: public class Game1 : Game { public SpriteBatch SpriteBatch; public Game1() { var…
0
votes
2 answers

How would I have properties of an object modified only by components of that object in C#?

So let's say I have an interface in my game, IItem. IItem represents an object with a render component, a weight, and an attached "process". The process may be attached by someone using some ability to affect the item. Maybe something like an…
bodangly
  • 2,473
  • 17
  • 28
0
votes
0 answers

Texture not drawn within drawable component

I'm trying to separate the individual parts of my game into states (scenes) so I can manage them more easily. While everything works in terms of initializing and handling game logic within the update loop, I somehow fail to draw something within the…
artganify
  • 683
  • 1
  • 8
  • 23