Implementation of Microsoft's XNA 4 APIS for Android, iOS, MacOS and Linux.

learn more… | top users | synonyms

-2
votes
0answers
11 views

Where do I add my physics for the player? CollisionManager or Player?

I'm struggling to find out why my physics isn't working in my game, finding it hard to make it communicate with another class. Also not sure if my physics is fully well done either, I had help from ...
0
votes
1answer
33 views

Trying to implement physics to my player. Can't get it to work

I'm currently stuck on where to add physics to my player. Currently it's set so the player spawns in the middle to the left of the screen and can move around, but I want to make it so the user has to ...
0
votes
0answers
23 views

Is sidescroller movement just offsetting the background?, MonoGame/XNA

When I make a sidescroller game and what to move my character do I just offset the background, or is there another better way?
1
vote
1answer
59 views

Smooth slow pixel art movement MonoGame/XNA

When ever I move a sprite that is scaling using point filtering slower then 1 pixel for example 0.1 pixels the movement becomes choppy/jerky instead of moving in sub pixel movement it jumps from pixel ...
1
vote
1answer
37 views

XNA Monogame - Move .dll and .xml root folder

I was just wondering if it's possible to move the dll and xml files into a subfolder, like in this picture: Thanks !
0
votes
1answer
18 views

Changing the texture filtering methodology within the same SpriteBatch Begin/End pair

How would I go about using changing the texture filtering method being used within the same SpriteBatch Begin/End pairing? I have this code so far. spriteBatch.Begin(SpriteSortMode.Deferred, ...
2
votes
1answer
108 views

Why are Texture2d arrays so expensive? [closed]

I'm building a 2d engine in C# and I have several static sprites that have multiple color variations. Ok, easy enough, I create the Texture2D images at start time, then stuff them into an array, and ...
0
votes
1answer
33 views

MonoGame InstancePlayLimitException on Windows w/ OpenGL

Why am I getting the InstancePlayLimitException when playing several SoundEffects per second despite there being no limit unless programming for mobile? It occurs after only a few seconds of repeated ...
0
votes
1answer
124 views

Vector2 to 3D world coordinates

I think I am almost there, but not quite. I am trying to transform a 2D point, (in the following example (100,100)) into 3D world coordinates, in order to draw my 3D Model named TestModel in ...
1
vote
0answers
28 views

Getting back to game page from xaml page problem. (Windows Phone 8.1)

I have implemented a xaml page where user can submit his score. I have managed to get the user to the xaml page, after 2 hours of struggling but I do not know how can I navigate the user back to the ...
0
votes
1answer
37 views

Texture2D ignored by GC

I loaded my textures with FromStream method and I noticed a problem that those textures are being ignored by garbage collector. I even nulled them, called dispose on them and tried to force garbage ...
0
votes
1answer
20 views

Problem showing a xaml page in monogame, game page

I am trying to build a submit score page using xaml and integrate it into my monogame page somehow. I want to show a xaml page, after the user hit the Submit button, where he can put his name and ...
0
votes
1answer
25 views

Controller vibration with Monogame

Is there a simple way to make a connected Xbox controller vibrate with Monogame? I know that GamePad.SetVibration is not implemented but it seems like this would be a common enough problem that there ...
0
votes
2answers
83 views

Collision detection with moving tilemap

I have a player whose who's sprite is 48* 32. I know the player's position. The player can move up and down based on user input. I have a tilemap which moves. Here is an example of the array I use to ...
0
votes
1answer
55 views

Center a 3D model to cursor's position

I am having a hard time understanding how to go about this. I have a 2D game with some 3D models in it. I want to move a 3D model to where the mouse cursor is currently at in every frame (In other ...
0
votes
1answer
22 views

Set an scaled image rectangle coordinates

I have used the Origin parameter to draw the image (the image is also scaled) in center of the screen, and created a rectangle to detect whether user tapped on that image. The problem is that if I tap ...
0
votes
1answer
57 views

Drawing the same model multiple times

I am looking ways to improve the efficiency of my draw method in XNA/Monogame and understand how things work. I have just a group of 4 models (bricks), (red, green, blue, yellow) I am drawing multiple ...
0
votes
1answer
34 views

Most efficient way to hide out of bounds object in tile based environment [duplicate]

I am working on a desktop game in C#, with Monogame framework. I am storing the tile instances in a 2D Array, for the sake of easy collision detection. But the levels are big (often 100x100 or bigger) ...
2
votes
1answer
104 views

Rendering lighting only on specific objects

I have done something similar to this in monogame: My question is, what would I have to do to draw that lighting effect only on the pillar and not the background ? Is there something like ...
-1
votes
1answer
133 views

Loading Texture2d content in Monogame [closed]

I am using Monogame and following this tutorial series: https://www.youtube.com/watch?v=agt9-J9RPZ0 I am trying to load a Texture2d into the window and despite not getting any error messages the ...
1
vote
0answers
22 views

SpriteBatch passing textures to GPU

How exactly (or, how often) are textures passed to the GPU shaders in MonoGame/XNA? I am asking because I was profiling a MonoGame/XNA application and noticed that the memory controller load (using ...
0
votes
1answer
77 views

How to correctly enable anti aliasing in XNA?

In my project when I add graphics.PreferMultiSampling = true; this line in the Game1 Constructor (as the msdn website suggests), anti aliasing does not enable. Any idea what I might be missing ? Here ...
-1
votes
1answer
45 views

Logic outside of game loop running slower than calculated

I've been trying to figure out what is happening when I run functions from the update loop in XNA that the game freezes for a few seconds until the function is done. When I do performance testing to ...
0
votes
1answer
21 views

How to DrawUserPrimitives after Drawing a separate Vertex List

I am currently making a voxel based game and so far I have chunk loading working well. My voxels are stored in an array, then pushed to a VertexBuffer, then drawn as a triangle list. My problem is ...
0
votes
0answers
23 views

Monogame Spritefont XNB file doesn't show up in Content VS2013 Community

I created an XNB file for a spritefont in VS 2010 with XNA 4.0, and copied it into the content folder of my project, but it doesn't appear in the solution explorer of VS 2013. I am using the ...
0
votes
1answer
54 views

Draw 3D model on top of another one

I am trying to draw a 3D model I made with Blender in Monogame/XNA and this is the result I get when I draw 2 of them on top of each other How can I make it so that the colors don't add up, but the ...
0
votes
0answers
36 views

Back button press on Windows Phone 8.1 Monogame

I am developing a simple game for windows phone and I got stuck when at the handling the back button press. I have been searching for a while on google but I have not found anything that could work ...
0
votes
1answer
42 views

MonoGame in GTK#

I was wondering if it's possible to embed a MonoGame instance not in the standard window, but rather in a GTK# widget. If yes, how could I do it? Do I have to write a custom widget? Is it even better ...
1
vote
0answers
53 views

Multi-textured terrain XNA-monogame

I'm developing a TerrainEngine for my project and I have some issues with the multi-texturing part. I already tried some techniques but it doesn't match with my TerrainEngine's conception. My ...
0
votes
1answer
41 views

Can’t Load .fbx from blender to Monogame correctly

I am using pipeline.exe tool, to convert an .fbx file I made using Blender (using the default Blender 2.73a export settings) to .xnb, and then manually copy and paste it in my content directory (Is ...
0
votes
0answers
22 views

Game Center Leaderboards in Monogame

Do anyone know how to integrate a game center leaderboard in monogame framwork... I have searched high and low yet I haven't gotten any luck of finding articles that might help... Please direct to ...
0
votes
2answers
54 views

Using shader for cubes

I am trying to use a shader to get an effect like this. Notice how every cube has exactly the same lightning as every other no matter where it is on the screen if you look closely the lightning is ...
0
votes
1answer
34 views

XNA draw texture/font and DrawIndexedPrimitives at the same time [duplicate]

When i Draw a texture2d or a font with spriteBatch and also draw GraphicsDevice.DrawIndexedPrimitives, the frame is draw weird SpriteBatch spriteBatch = new SpriteBatch(GraphicsDevice); BasicEffect ...
0
votes
3answers
93 views

Drawing 3D cubes with xna

I managed to draw a 3d cube using triangles like this: protected override void LoadContent() { basicEffect = new BasicEffect(GraphicsDevice); VertexPositionColor[] ...
0
votes
3answers
140 views

Drawing image with an angle

Edit: the images below aren't supposed to have whitespace. I am just trying to show you that i am trying to create a rectangle from a 1x64 image, positioned as shown in the second picture I know how ...
0
votes
1answer
119 views

Lightning bolt effect with particles is not continuous

I am Drawing a lightning effect animation using this image: Below the result: As you can see the outcome is not a continuous purple color as I wanted it to be, but it has black spaces in ...
-1
votes
1answer
62 views

How to remove the jitter from my pong AI movement?

I am developing Pong using Monogame / XNA and my AI paddle is really jittery when the ball is moving more horizontally than vertically. My AI is very simple and works as follows: If the ball's ...
1
vote
2answers
39 views

Scaling sprites in XNA 4.0/Monogame

So I looked up a tutorial on how to scale sprites in XNA and I think I have it all figured out. The only problem is that I want to use a spriteBatch.Begin() method overload without changing anything ...
0
votes
0answers
43 views

Farseer physics engine: save world simulation and load at a later time

I have created a windows desktop game using monogame and the Farseer Physics engine (FPE 3.5). In this game I would like to the user to be able to save the game and continue at a later time. When I ...
2
votes
1answer
49 views

How to make my installer install XNA framework and .NET 4.0

I have made a simple Monogame game. Right now I am using this installation-package maker: http://installforge.net/ Currently my installer only installs my "game". (All the output files generated by ...
0
votes
1answer
24 views

Porting WP8 to IOS GraphicsDevice Error (Monogame/Xamarin)

I seem to be having a problem porting to IOS. I have my game working on WP8 and Android with any major issues but when trying to run on iPhone I seem to get an error when initialising the ...
0
votes
0answers
16 views

SharpDX - Cannot get custom content resolver to work

I've been trying to implement a custom IContentResolver for my game with SharpDX, my goal is to be able to load all of my assets from my project's resource files. Here is the code that I use: public ...
0
votes
1answer
154 views

How can I map regions on a world map image?

I am trying to use a map of the real world, but I need to have a way to break it down by countries and regions. Ideally down to a province level. I figure that I'd need to be able to define ...
0
votes
2answers
185 views

C# xna/monogame ghost trail effect

I would like some know how can someone make an animation like this, in Monogame specifically.Since i am completely clueless on how to go around this i how should i go about this ? I hate asking ...
0
votes
0answers
17 views

Porting from WP7 to WP8 and Android (Monogame) - Screen Scaling

Sorry if this seems like a silly question but I have ported a game across from WP7 to 8 and noticed the game didn't auto scale so the game was just over a quarter of the screen. which lead me to the ...
1
vote
2answers
68 views

XNA/Monogame inverting a BoundingBox

I have a box that is drawn around my game that I want to check collisions with. Currently my BoundingBox is made in a way that whatever is inside the box is colliding with it: BoundingBox bb = new ...
0
votes
1answer
205 views

MonoGame: Draw thousands of quads without hardware instancing

In my game, every bit of geometry is a textured quad billboard in 3D. I have many thousands of these things on screen at once, sometimes with overdraw. As I understand it, there are a few ways I can ...
2
votes
1answer
62 views

MonoGame SetRenderTarget is wiping the backbuffer

In my Monogame (XNA) Windowed App, compiled for Windows PC, running on Windows 7, I have public RenderTarget2D renderTarget = null; In the Inititate() function I have renderTarget = new ...
1
vote
1answer
62 views

How can I change the rendering backend on Windows in Monogame?

I'm using MonoGame with Visual Studio 2013 Express. I'd like to switch from a SharpDX backend to OpenGL and OpenAL. How do I achieve that?
0
votes
1answer
85 views

Adding SpriteFont in Monogame

My question is probably something you guys have heard before - "How do you add SpriteFont's in Monogame's content manager?" The simple answer to this is, right click the 'Content' folder, go on 'Add ...