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

Monogame pixel shader - Texture passing as completely transparent

I'm trying to make a distortion shader for water in my game. I have the screen's rendertarget, and the water mask rendertarget, and I'm try to simply capture the pixels underneath the mask, but I can't get it to work. When I pass the textures, it's…
user1438378
  • 141
  • 2
  • 5
0
votes
1 answer

Need help - Monogame 2d water reflection

Ok so i am following this tutorial Water Reflection XNA and when i adjust code with monogame i cant get final result. So here is my LoadContent code: protected override void LoadContent() { spriteBatch = new…
mskrpan
  • 13
  • 1
  • 1
  • 3
0
votes
1 answer

Monogame/C# - Check if collision was present in previous frame

I have a working collision system in place in my Monogame/C# project that uses a quadtree to determine potential collisions, and test them accordingly. My problem is that I want to be able to send out a method to the entity (that has been collided…
0
votes
1 answer

How can i show all edges in monogame?

I am using Monogame 3.5 and i have simple model of cube. I use BasicEffect to draw it. I want it transparent so i use effect.Alpha = 0.5f. Is it possible to show all edges something like on picture?
Pavol
  • 552
  • 8
  • 19
0
votes
1 answer

MonoGame Different Size RenderTargets and Scaling issues

I've got some different controls I have that I'm drawing to different size render targets. If I draw a 64x64 textureA to an 800x600 render target like this. Graphics.SetRenderTarget(Canvas); _spriteBatch.Draw(textureA, new Rectangle(0, 0, 64, 64),…
Kyle Gobel
  • 5,530
  • 9
  • 45
  • 68
0
votes
2 answers

C# Monogame - System.IndexOutOfRangeException with 2D array

I'm having an issue with C# where I keep getting an IndexOutOfRangeException whenever I run the Draw method in one of my classes. I've been trying to figure out the problem for a couple of hours now, but I haven't been able to find the exact problem…
Colm
  • 3
  • 5
0
votes
1 answer

Monogame - Changing background colour error

I'm building a 2D platformer and I want to have different colour backgrounds for each level. I've made an object that when collided with, it places the character onto the next level by changing the player.Position, like so... protected override void…
toadflax
  • 375
  • 4
  • 17
0
votes
1 answer

Box2D Farseer Physics Center of Mass and origin inconsistent

I am using the Farseer Physics library with MonoGame. In my game I use compound polygon bodies, created with BodyFactory.CreateCompoundPolygon(...);, but they have problem. Their origin is in the top left corner, rather then the centroid like most…
Pema Malling
  • 131
  • 8
0
votes
1 answer

Converting from Real world coordinate System to another

I have issue I am tryin to sort. So basically I have a coordinate system where +x = traveling East, +y is up, and +z is traveling North. Effectively I have taken Lat/Long and projected it to OSGB. I have a list of points in this coordinate system,…
Rufus Mall
  • 569
  • 4
  • 14
0
votes
1 answer

Following point using force

I'm trying to make my Entity.cs Follow(Vector2 point) any point in the map. This has to be done using "force". Force is a Vector2 of Entity that is used to move the Entity across the map. On every Update(float elapsedTime) of Entity, Entity is moved…
Monset
  • 648
  • 5
  • 25
0
votes
1 answer

Monogame - Loading between levels

I'm currently building a 2D platformer using Monogame and I'm having a bit of an issue. The way I have designed my game is that I use an array to draw out the map of tiles, which all have collision, like this: protected override void…
toadflax
  • 375
  • 4
  • 17
0
votes
1 answer

Passing list as a parameter: player vs the world

I'm creating a top-down 2D game. Classes in question are Level and Entity. In Level I have a Map, but let's just think of that class as a list of items like walls and other stuff you can imagine will have a body, which is actually a XNA's…
Monset
  • 648
  • 5
  • 25
0
votes
1 answer

How to build a Monogame c# project on travis-ci

The travis-ci build says .. could not import "$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Content.Builder.targets" after moving this file to my project and editit the path from it in my .csproj file it says that the mgcb.exe cannot be…
jmattheis
  • 10,494
  • 11
  • 46
  • 58
0
votes
1 answer

Monogame - Cut scene methods?

What I'd like to create So I'm building a 2D adventure game using Monogame and at the begining of the game, I want to use 3 images that show the previous storyline, kinda like an introduction cut-scene, so each image shows different snapshots of…
toadflax
  • 375
  • 4
  • 17
0
votes
2 answers

Monogame with winforms

I'm planning on creating a map editor for a C# game I'm building. I've done this previously using XNA and XNA's old GraphicsDeviceControl, GraphicsDeviceService and ServiceContainer. I want the ability to create a class and inherit from the…
TS1997
  • 106
  • 1
  • 11