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/XNA, move sprite to mouseclick position

i wanna make a sprite move to the mouseclick (like in most strategie games). But i made it only while i press and hold the left mouse button so far. When i change the if-clauses to while loops, the sprite goes immediately to the mouse position. Can…
Sancho
  • 1
  • 2
0
votes
1 answer

Monogame - Key 'Pressed' instead of 'Hold' to Jump

Will keep this short and simple: I have a 2D game with a movable character, and I have written some code to allow my player to jump, like so: if (Keyboard.GetState().IsKeyDown(Keys.Space) && hasJumped == false) { sound.Play(volume, pitch, pan);…
toadflax
  • 375
  • 4
  • 17
0
votes
0 answers

Default MonoGame project won't build ("debug target...is missing")

I am new to C# and Visual Studio. After installing MonoGame and trying to build the default project that is created when selecting the "MonoGame Windows Project" or "MonoGame Cross Platform Desktop Project" options, I get the following error: I do…
gesse
  • 31
  • 5
0
votes
1 answer

Monogame Touchlocation Coordinates don't match Touchpanel resolution

I try to get the coordinates of a touch in Monogame. TouchPanel.DisplayWidth and TouchPanel.DisplayHeight return the right values (1919 x 1080). However the position of the touchLocation is a coordinate within a 720p resolution. Here's the…
0
votes
2 answers

Monogame - Reload a sprite again

I'm making a 2D game using Monogame. My character loads to the game fine, however when a user presses the T key, I want my character to reload again (As if the character has teleported.) I have loaded the player content in the LoadContent() function…
toadflax
  • 375
  • 4
  • 17
0
votes
2 answers

Getting location of mouse on a grid

So I'm stuck on how to be able to convert my mouse position in monogame/XNA to a position of my grid. What I am trying to achieve is basically to change the color of the rectangle on that specific cell in the grid to a different color when I click…
Favonius
  • 49
  • 7
0
votes
0 answers

Monogame - Looking to send out a rope from a character

I'm working on a game in monogame, one of the characters in the game is able to send out a rope from it's current location which will collide with terrain and allow them to swing across gaps. The problem is that I don't even know where to begin on…
0
votes
1 answer

Moving Draw() code to a Class

I'm creating a game in monogame, and I've loaded tiles in my game inside the Draw() function like so: protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); …
toadflax
  • 375
  • 4
  • 17
0
votes
1 answer

How to setup project for Monogame + Windows 8.1?

I'm in the middle of app development with Monogame, and I wanted to add a project for Windows Phone. I have a device with Windows Mobile 8.1 for testing, and I'm using Monogame 3.5 (latest) + VS 2015. But how do I create a project? The templates for…
Arek
  • 1,276
  • 1
  • 10
  • 19
0
votes
1 answer

Monogame - Sprite class

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 walking to the right. I use the arrow keys to…
toadflax
  • 375
  • 4
  • 17
0
votes
1 answer

Monogame Custom Effect

Me and my friends wanted to implement a custom effect which is hooked up to a mesh during the "build content" process in Monogame pipeline. That is, if a model consists, say, of 10 different meshes each one with their own effect, it would make our…
MutomboDikey
  • 155
  • 2
  • 12
0
votes
1 answer

MonoGame with Farseer physics engine. Can't locate at bottom

I'm trying to learn how to implement physics in games, so I chose Farseer Physics. I'm trying to implement the falling round object till the obstacle(ground in my case). Here's my code: using FarseerPhysics; using…
Fallen Angel
  • 163
  • 1
  • 4
  • 15
0
votes
1 answer

Bitmap function giving parameter not valid error

First some background. I a relative new to C# programming and have been lear ning it by creating games following several tutorials. I am running VS2015 Community on Win8.1. I am following a game development tutorial that was originally written to…
Devbyskc
  • 1
  • 1
0
votes
1 answer

Monogame - Loading multiple tiles

I'm having some issues loading multiple tiles to my game. My game world currently has a pixel size of 770x450. I have loaded a single tile at position (0, 330), and wanted to make a loop that copies and loads the tile along the x axis until it…
toadflax
  • 375
  • 4
  • 17
0
votes
1 answer

How to do mouse selection on grid? Monogame/XNA

I am creating a game that uses tile based combat on a portion of the screen. I have already mapped a 2d array of nodes (each with a corner position to draw my units) and I have already done some tests with drawing the actual units. Now I need to…
Thomas Brooks
  • 49
  • 1
  • 3