Open-source implementation of Microsoft's XNA 4, for Windows, Mac, Linux, Android, and iOS, among others.
0
votes
1answer
32 views
Monogames Most efficient way of checking intersections between multiple objects
I've created a top-down shooter with multiple objects such as enemy AI (tanks), walls, power-ups etc.
At first I was able to create about 300 AI units which aims to move the player character, checks ...
0
votes
0answers
19 views
XNA/MonoGame BlendState.AlphaBlend not working?
I have a UI manager that renders a background image and some images and buttons using BlendState.AlphaBlend. This works as intended. However, when I try and draw some text on top of it with the same ...
1
vote
1answer
30 views
draw only on stencil buffer monogame
Exactly as the question says. Is there a way i can draw vertices only into the stencil buffer.
Basically i want to perform some operations on some vertices of a mesh and based on the result, draw ...
0
votes
0answers
21 views
XNA - 2D camera orbit around sprite
OK, I have a 2d sprite in a scene and I would like to know the theory behind the camera orbiting around it with an analog stick.
I know the basic code to get the input from the gamepad, but I'm having ...
1
vote
2answers
90 views
How Should I Go About Updating My XNA Game?
So, I've created an XNA game, but I'm not selling it... it's just a private game to give away to my friends, more of a practice project. But say I find a bug, or think of a new feature...
I don't ...
0
votes
1answer
51 views
only one tile being drawn xna c#
I have been looking at tile engines for the past few days and decided to have a go at my own one for educational purposes. I want to use different textures for the tiles of my map, for example 1 = ...
0
votes
2answers
33 views
How to use Monogame Content Pipeline with XML
I have an XML file that I'm trying to import into my MonoGame project using the content pipeline. I'm having trouble getting the MonoGame Pipeline tool to convert the XML file into a .xnb file before ...
2
votes
2answers
54 views
Why does VertexPositionColor seem incompatible with Monogame?
This question is a continuation of What causes this InvalidOperationException when drawing primitives?.
I've been dealing with HLSL shaders in Monogame over the past few days. It has been extremely ...
0
votes
2answers
39 views
What causes this InvalidOperationException when drawing primitives?
I'm working on implementing a 2D masking effect in my current game. To do so, I have two textures, one for the source image and one for the mask. The source image is just a regular texture, so that's ...
1
vote
0answers
60 views
My Character objects are complex, how should I organize their structure?
I'm using Monogame to make a fighter. I have created an abstract Character class that has basic character functionality such as HP, meter, update boilerplate and such, and will be overridden as each ...
1
vote
1answer
38 views
HLSL texture sampler always returns white
I'm facing in problem in HLSL with Monogame that I can't figure out. The gist is that sampling from a texture seems to always return white rather than the texture's actual color. My pixel shader code ...
0
votes
1answer
30 views
Jitter Physics not working correctly. Going through objects and getting pushed back when touching walls
I am trying to use the Jitter physics engine, however, I can't get it to work correctly. For example, when I touch the side of a cube, it pushes me far back in the opposite direction. While I am ...
0
votes
0answers
27 views
Monogame/XNA 3D Floor/Wall Collision
I am trying to make collision work in my game, however, I am so lost on how to do what I want. I have a player model and a floor model with a BoundingBox around both of them. The floor is just a ...
0
votes
1answer
42 views
Right click a location and move towards it (C# Monogame)
I would like the player to move towards the mouse when the player right clicks. The player does move, but doesn't stop when the player reaches the point.
Here is the code.
void playerUpdate(GameTime ...
0
votes
1answer
19 views
Monogame HLSL GBuffer Depth Mysteriously Colored Red
I was working through an older tutorial listed here, and got it to work for the most part. The RenderTarget for Depth is colored red for some reason, and I've been scratching my head trying to figure ...
0
votes
0answers
37 views
Anti-Aliasing Issues in MonoGame
My anti-aliasing is not working in MonoGame. I'm not sure if I'm doing something wrong. See the image below (rotating the screen -- coordinates are all overlapping/adjacent, so should blend them):
...
0
votes
1answer
36 views
XNA - Isometric View not rendering mesh correctly
New to XNA (3D) -- familiar with OpenGL (but it has been a few years).
I've been working on an engine that should be a 3D Isometric View, but I'm having issues with things rendering. I wouldn't be ...
0
votes
0answers
15 views
Monogame Android FileNotFoundException but iOS works fine
I'm creating Monogame shared game for Android and iOS modificating this tutorial https://www.youtube.com/playlist?list=PLE500D63CA505443B but I got stuck at 11th video.
I need to load file Splash.txt ...
0
votes
1answer
41 views
Migrating from OpenGL to XNA (MonoGame)?
I just started working in MonoGame with 3D code. I've used OpenGL before in the past, and I've also built engines with 2D Sprites/SpriteBatch's in MonoGame.
However, I'm getting extremely stumped ...
0
votes
1answer
25 views
MonoGame - scale down a sprite from the middle
I want to animate a texture's scale. First it's scaled up to 10, and then it gradually goes down to 1. However the texture is drawn at Vector2(0, 0) so it doesn't animate as I had imagined it would - ...
2
votes
1answer
55 views
Is it possible to have a diagonal movement animation in monogame/xna?
Is it possible to have a diagonal movement animation in monogame/xna?
As far as I can tell it's not possible to recognise multiple keypresses (ie "A && W" or "S && D") as unique ...
0
votes
1answer
58 views
How to unit test XNA Game object
I'm doing a hobby game project using Visual Studio 2015 and XNA, via the MonoGame implementation. I wanted to do some unit testing, as I recently discovered this feature in Visual Studio, and want to ...
0
votes
1answer
42 views
Accessing soft keyboard on Android via Monogame
I have a game built in Monogame targeting the Android and iOS platforms. I need to develop a login form for the game. I've begun to roll out my own UI components (text inputs, buttons, so forth), as I'...
0
votes
2answers
96 views
Tile Map Collision in 2D Platformer (C# Monogame)
I am trying my hand at making a small 2D platformer. Currently I am trying to implement collision on a tile map. I have been trying to experiment with different ideas but can not find a way for the ...
0
votes
2answers
31 views
Bounding box messed up for .fbx models
I am trying to make bounding boxes for my models. My code works fine if the model is imported as a COLLADA (.dae) file. When I try to import a model that has .fbx extension, my bounding box messes up. ...
1
vote
0answers
30 views
Generate and then rasterize vector shape in Monogame/XNA
I apologize if this is too broad, but I can't seem to find information on this anywhere (perhaps I am searching for the wrong thing?)
Anyways, I'm making a simple game where the player visits ...
4
votes
1answer
90 views
Make models not see through
All my models are see through and I can't figure out why. For example:
Here's what it looks like when you are not looking through them:
And when I look through one of them:
Why can I see the ...
1
vote
1answer
53 views
Camera follow behind a Model
I am trying to learn about the Camera in a 3D space and wanted to 3rd person type of camera. Right now, I directly control my camera and it doesn't follow anything. It works like a first-person camera....
0
votes
1answer
25 views
Having a problem with referencing Farseer into my Monogame project
I am trying to load in the Farseer Physics Engine into my current Monogame project and whenever doing so, the Farseer solution will load in correctly but then when I try and reference it, it gives me ...
1
vote
2answers
34 views
Create BoundingBoxes on a Model
I am trying to create multiple BoundingBoxes on a Model by following this tutorial:
https://electronicmeteor.wordpress.com/2011/10/25/bounding-boxes-for-your-model-meshes/
However, I keep getting ...
0
votes
0answers
26 views
MonoGame PixelBitmapContent Usage/Import
I am trying to use this class: https://github.com/labnation/MonoGame/blob/master/MonoGame.Framework.Content.Pipeline/Graphics/PixelBitmapContent.cs
However, I can't figure out how to import it. I ...
1
vote
1answer
86 views
Very weird C#/XNA bug, not drawing a magenta dot
My C# code is drawing all the colored dots except the magenta one. Here's the code:
scr_draw_dot((Int16)(mmbxo-20), (Int16)(mmbyo+20), 2, 0, A);
scr_draw_dot((Int16)(mmbxo-20), (Int16)...
2
votes
2answers
106 views
Getting Sprites from a SpriteSheet with Rows and Columns
I am having trouble reading a spritesheet with rows and columns. If it is just one row, then my code works fine. The sheet looks like this:
Source: Character animations, clothes, armor, weapons, ...
0
votes
1answer
24 views
MonoGame sprites not consistently drawing
Please don't mark this as a duplicate of my previous question which was asked anonymously. this is a reattempt because i cannot edit the first attempt.
What I have so far is:
- randomly generated ...
0
votes
0answers
58 views
MonoGame: 2D Sprite acting weirdly
I have a double array of tiles that show the ground.
They are randomly populated with a variety of items.
one item that only spawns one is a creature spawner.
this spawner spawns up to 5 creatures (...
-1
votes
1answer
147 views
create continuous snake like slither.io MonoGame c# [closed]
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
94 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
1answer
62 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
51 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 ...
2
votes
1answer
75 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
24 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
50 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
35 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
118 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
51 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
116 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
25 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
56 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
193 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
120 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 ...