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

learn more… | top users | synonyms

-4
votes
2answers
82 views

I want to make my first video game [on hold]

I want to make my first video game, but I don't know where to start. I have watched some videos about how to make video games, but I'm still kind of stuck. Any ideas?
-1
votes
1answer
86 views

create continuous snake like slither.io MonoGame c# [on hold]

I need help creating a snake with continuous smooth motion like slither.Io up till now I just can't find any but the grid snake. EDIT: Following a curve with the snake, Grow that snake.
1
vote
0answers
72 views

Why would ContentManager load new copies of content instead of returning references to existing content?

I am currently programming a space shooter with MonoGame. I encountered an issue where the memory usage constantly increases when I load a specific class. This class is called Background which ...
2
votes
0answers
33 views

Frame Skips in MonoGame

I'm developing a 2D game using MonoGame. I've got a square on the screen I can move around. The problem is that about once a second, the square jumps a bit. Using a frame counter I found here I've ...
1
vote
0answers
26 views

Monogame intermediateSerializer with winforms

I want my xml files to be game ready on save in my winforms. Right now I am trying to serialize a simple object like this and it is accessing the XML file, but not outputting anything. Am I missing ...
1
vote
1answer
51 views

Publishing an XNA project on Windows Store

I have made an application in XNA that I want to sell on Windows Store. When it comes to uploading in the Windows Store dashboard it says files need to be in the format xap, .appx, .appxbundle or ....
0
votes
0answers
12 views

Importing a skinned model from Blender to Monogame

I would like to import FBX character animation from Blender to Monogame using a custom skinned model processor (which I created with this tutorial). However, when I try to import a model(for example ...
0
votes
0answers
24 views

Importing animated Collada from blender to monogame c#

I have some problems with rendering animated Collada files in monogame. I understand animated skeletons, but in Blender is way to animated without making skeletons. Let's say, I want to make a ...
1
vote
1answer
32 views

Faces on 3D model not rendering in the correct

I seem to be having trouble with rendering models in monogame. I'm trying to draw several cubes, in a minecraft style world. It's a simple .obj file, nothing special. But... for whatever reason, both ...
1
vote
0answers
100 views

Jump height being affected by the duration of how long jump button is pressed

So I've been trying to implement a controlled jump the way the title proclaims to make the game easier to play and having the ability to make harder challenges in each level. I have noticed how there ...
0
votes
1answer
43 views

Getting the material name or index from a Blender FBX model in MonoGame

I've imported Blender FBX models in to UE4 before, so I'm aware that some of the material information is saved in the model. How do I go about accessing this in MonoGame? To be clear, I don't ...
0
votes
1answer
76 views

How can I duplicate this color/hue shifting effect in C#?

I am looking for a way to duplicate this color shifting effect: I don't think it matters but the starting frame would be this: My instinct was that some type of hue shift is occurring in a way ...
1
vote
0answers
10 views

Monogame distorting skinned models

I'm developing a game using Monogame and the last few days I've been trying to work with keyframe animations without no success so far. I tried using both Xna Skinned sample from Microsoft and Better ...
1
vote
0answers
47 views

How can I bundle assets into an executable from my game-maker-like editor?

I am attempting to implement a simple "game-maker" solution. I'm working with Visual Stsudio, in C#, using MonoGame. I'd like the games my editor creates to be stand-alone executables, with their art ...
3
votes
1answer
180 views

How to create shockwave of objects in other shapes than circle?

Basically, I'm making a bullethell / I wanna be the guy inspired game for where I'm currently creating different methods of spawning bullets into the game. One of the few methods I've created is ...
1
vote
1answer
50 views

Correctly creating/handling events for keypress in MonoGame C#

I'm having trouble finding the best approach to registering an instantaneous user key-press with MonoGame (where the key has been held down and then released), using events in C#. Unlike the click of ...
0
votes
0answers
30 views

Scaling window with Monogame.extended issue

I'm trying to scale the game window in Monogame (I also have installed Monogame.Extended). (Example of what I want to achieve) I've been doing this setting manually the PreferredBackBuffer when ...
3
votes
1answer
133 views

Are there spritebatch drawing limitations on monogame?

I've reached a point that it seems when I draw too much on screen, monogame starts doing weird things. When I call this code in the Draw method public void drawDialogBox() { if (...
1
vote
1answer
53 views

One large tileset or multiple tilesets

I'm currently writing a 2d tile scroller for a hobby project and I can't find any resources to give me a clear answer to which is more efficient to do. Each block contains tiles 44 by 24, 32px x ...
1
vote
0answers
20 views

How to read monogame log files on android device

I am working on a monogame android project where I want to log some data. First try was something like this: Log.Info(tag, message); This works great when debugging in Visual Studio via the Android ...
0
votes
1answer
23 views

Can't get to work Spritefonts on monogame 3.5(using Visual Studio 2015 Comunity)

I've been trying to get to work spritefonts, but to no avail. I've added the pipefont to the Pipeline but when I try to load it, it shows this error here Here it is the spritefont content <?...
2
votes
0answers
17 views

Porting to Android…what is the equivalent of Properties.Settings.Default?

I'm porting my MonoGame/OpenGL app to Android. My game uses Properties.Settings.Default to store user preferences. What is the equivalent of this in Android?
0
votes
1answer
62 views

Is drawing an entire game to a render target and then scaling it up a viable solution to a pixel-mismatching problem?

To clear up some possible confusion caused by my title, my game is meant to be pixelly. I currently achieve this by multiplying sprite sizes and locations by a constant called World.Scale (currently 8)...
1
vote
1answer
29 views

XNA - SoundEffect with SpeedOfSound

SoundEffect has SpeedOfSound property. I'm trying to use it, but it doesn't work: SoundEffect.SpeedOfSound = 600.0f; SoundEffectInstance soundEffectInstance = stepsSound.CreateInstance(); ...
0
votes
1answer
61 views

How to make a windows installer for Monogame/F# game?

Alright, I have several questions that I haven't been able to find answers to yet. It looks like WiX and Inno Setup are pretty standard solutions for making the installer. WiX looks pretty ...
1
vote
1answer
20 views

Render ModelContent directly

Say I have a set of .fbx files which contain all my bones, meshes and animations. I want to make use of these in the finished application i.e. rather than converting them all to .xnb I just want to ...
0
votes
2answers
58 views

MonoGame Gamepad Y axis flipped?

I'm following a book I bought on Google Play that is teaching me the ropes of MonoGame, and in Chapter 2 it introduces creating an input wrapper that takes care of all the input methods for a game pad ...
4
votes
1answer
43 views

How to display unicode text in monogame?

I'm looking for ways to draw any characters that may be entered in any language, on any keyboard, so that I don't have any trouble with limited language support in a monogame project. So far I've ...
1
vote
0answers
75 views

How should I structure a Shared Library for different platforms for my MonoGame project?

I am quite new to the MonoGame/XNA framework and i have some structuring questions right now. One of the reasons I use MonoGame is because there is still that feeling to create a game from scratch ...
0
votes
1answer
101 views

Monogame - custom json content importer

I am trying to build a JSON tile map importer for the content pipeline of Monogame but I'm having difficulty doing so. I have been following this tutorial and got something... But now it appears my ...
0
votes
1answer
58 views

How can I use web browser controls for non-browser game GUI?

I'm looking for a way to get a modern browser's level of customization and rendering quality in my c# monogame to avoid using roundabout/limited/buggy GUI toolkits and to get better fonts without ...
0
votes
0answers
53 views

Monogame - tile map with XML instead of JSON

I'm working on the levels for my game so I've built these classes to read my maps: Tiles.cs: protected Texture2D texture; private Rectangle rectangle; public Rectangle Rectangle { get { ...
0
votes
1answer
54 views

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?
0
votes
1answer
28 views

How do I create an Ubuntu snap for a MonoGame application?

I've been going through the snapcraft documentation and examples and I'm still really confused about how to go about creating my snapcraft.yaml file. Basically I have a folder with my game in it. ...
2
votes
1answer
58 views

XNA/MonoGame screen scale and keeping aspect

My aim is to make a simple 2D platformer, the idea is that it will be a base resolution of 480x270 (16:9) which can scale x2, x4(1920x1080) or go full screen. I basically do: graphics....
0
votes
0answers
16 views

Resolution-Independent Rendering squishes view field

For the last couple of days, I've been trying to get a resolution-independent renderer going on an XNA game. I have a camera and a renderer class that I added, based on this tutorial Here's the ...
0
votes
0answers
30 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
80 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
35 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 ...
1
vote
2answers
92 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
1answer
31 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 beginner'...
1
vote
1answer
73 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 ...
2
votes
2answers
136 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
37 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
2answers
102 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
0answers
22 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
60 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
1answer
31 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
28 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 ...
1
vote
1answer
146 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 ...