C# is a multiparadigm, managed, garbage-collected, object-oriented programming language created by Microsoft in conjunction with the .NET platform.
2
votes
2answers
119 views
How might I script the creation of CLR objects?
I am looking for a method to script the creation of entities (arrays of components) for delivery through my entity factory, i.e scripted creation of .net objects.
I have looked into Lua but it seems ...
2
votes
1answer
106 views
Sound activated particlesystem
I am trying to make a particle system that is activated by sound. Like emitting on the beat resizing on the beat and such things. I found some nice tutorials on how to make things like ...
0
votes
0answers
65 views
Sceneview Lags when using Arrays
I'm getting a strange behavior here - when i create a simple C# script which holds an Array of classes, where both, the script class and the array classes, are marked as Serializable, my sceneview ...
-1
votes
1answer
124 views
Animation: mid-state
At the moment I have a simple static texture. Now I want to animate my sprite. The texture is a simple human. When the user press the enter button, the human gets into state2. This is the standart ...
-1
votes
2answers
163 views
moving from XNA to LWJGL [closed]
Hi StackOverflow people!
I would like to know how easy it could be to move from XNA to using LWJGL.
Just wanted to throw this out there because of the rumors that MS is shutting down XNA and having ...
0
votes
1answer
128 views
Smooth rotation [duplicate]
I would like to rotate my Player very smooth. At the moment the player stops rotating when I release the button. Also the rotation should get faster, if the player rotates longer. I use XNA and have ...
0
votes
3answers
80 views
help using image to overlay grayscale around player
I'm sorry for the confusing title but it is hard to explain in one sentence.
This is what I have
What I want to do is use that black overlay to convert everything in the black area to grayscale. ...
2
votes
1answer
55 views
Accessing other classes from a Box2D (farseer) body
I'm using Farseer for physics in a game, and have several key classes: Planet and PlanetProp. Each planet has a large circular body and a "field". This field is a large sensor around the body. ...
3
votes
3answers
199 views
8 directional movement - Maintain vertical position
I have a top-down game that has 8 directions of movement (top/down/left/right/topright/topleft/bottomright/bottomleft). There are sprites for each direction of movement. This is just an example ...
1
vote
2answers
146 views
How (update,set, apply) dynamically color on a model of a XNA project?
I encounter a problem for set a background color on my model instantiated. I can change the texture but not change color.
Is there a parameter for change the color ? Or change the opacity ? I am ...
0
votes
1answer
81 views
Unity3D GUILayout Window Wont Show Components
I am fairly new to Unity, but picking things up quick. This is actually one of the first problems I have come across that has me stumped.
I am trying to print a good amount of components onto my GUI ...
2
votes
0answers
74 views
Difference between multiple AudioUnits and one AudioGraph with a MultiChannelMixer
I'm porting my game to iOS using MonoTouch, and I'm having some trouble getting sound output to work. SystemSound/AVAudioPlayer is way too simple for my needs (I need looping and multiple simultaneous ...
-3
votes
1answer
338 views
2D XNA Shooting Game [closed]
im doing a XNA game for a school project but im having trouble with the bullets. I can´t find any way to draw them or "invoque" them went i want. It is a modified Space Invaders that im trying to do. ...
2
votes
3answers
178 views
How can I load 2D texture data without a GraphicsDevice instance?
We have a client/server architecture for our game with the client being the XNA Game, and the game server is separate and only references XNA. They both use a shared DLL for networking. The game ...
-2
votes
3answers
332 views
Why use textures that are Power of Two? [duplicate]
Possible Duplicate:
Why are textures always square powers of two? What if they aren’t?
I am using C# and XNA (also MonoGame for other platforms than Windows) to create a game in 2D. ...
0
votes
0answers
90 views
Draw mesh with multiple bones
So I currently have an object made up of only one mesh. And this object contains three bones. One for strecthing the mesh left, one for streching the mesh up, and a center bone, which moves the object ...
2
votes
1answer
78 views
ResourceContentManager with folders
I am attempting to do something like the following:
http://blogs.msdn.com/b/shawnhar/archive/2007/06/12/embedding-content-as-resources.aspx
(Access the content via a DLL)
However, I need to maintain ...
-1
votes
2answers
132 views
Collisions and camera tilt in XNA C# 3D Game
I am working on a game programming class project and need some help. I cannot find a good tutorial on how to get these 3 frictionless spheres to collide with each-other, the surface and the walls of ...
0
votes
1answer
475 views
Move Object Around Sphere in Unity3D
I am trying to get a GameObject to be able to be controlled to move freely around a sphere using a virtual on-screen joystick. I am building this for iOS and Android in Unity. I am using the standard ...
0
votes
2answers
149 views
3d to 2d Collision
I have a 3d model which rotates around my screen, it's always on the Z axis = 0 where everything of my 2d images are. My 2d images fly out of the center and get bigger to give the view as getting ...
4
votes
1answer
971 views
Replacement for XNA? [closed]
Since Microsoft stopped developing XNA I'm wondering what will be the replacement for the XBox 720°.
I've been wondering about this. XNA was THE technologie the XBox, easy and powerfull.
So is ...
1
vote
1answer
68 views
Automatic Tile Transitions Not Working Correctly [closed]
I've started writing a tile based game in XNA today using the tutorials here. I'm on the Part 6 - Side Topic - Auto Transitions at the moment. My transitions aren't working correctly as you can see ...
1
vote
4answers
214 views
Who should manage projectiles?
I was following a tutorial that was recommended to me to learn the basics of game design through XNA. And I got to this tutorial:
...
-1
votes
1answer
122 views
Multiple viewports [closed]
[Problem solved !
I canno't answer with the response because i have less than 10 reputations. I have to wait 8 hours.]
Currently, i'm trying to display 3 viewports.
1st : This viewport is the entire ...
4
votes
2answers
237 views
Ball bouncing infinitely and constantly
Alright, so I've got hold of some simple physics mechanics, and am currently trying to implement bouncing. Based on the first answer of this question, I've developed the following algorithm:
...
2
votes
1answer
89 views
Developing an interactive book for Windows-Runtime
My three year old loves playing with the interactive books on our iPad, and I love playing with code and I love my Surface RT...
So I thought I'd try and make a basic animated book using WinRT, I've ...
0
votes
1answer
245 views
Can I develop libgdx game with C#?
I see some articles through Google that I can use libgdx in C#. Is it true? I found no official and unonfficial about this. If there is a way, please tell me how. Thank you
3
votes
1answer
136 views
Figuring out which direction my object is facing on a 2D plane?
My friend and I were messing around in XNA 4.0 making a 2D racing game. Kind of like this one: Ivan “Ironman” Stewart’s Super Off Road. The problem we are having is knowing which direction the car is ...
1
vote
2answers
176 views
How to store different abilities in player class?
So, I have a player class with basic actions.
During the gameplay he unlocks new abilities.
I don't know how to store new actions within the player class.
To be precise - I know how, but my method ...
2
votes
1answer
182 views
How to organise an XNA client/server solution
I was wondering what would be the best way to go about organizing the projects for the XNA project I have been working on. It is a simple game that uses a client/server architecture.
Currently ...
-1
votes
2answers
115 views
Tile collision, can't get correct behaviour [closed]
I define a tile with a rectangle. This is displayed below.
public class Tile : Sprite
{
Rectangle rectangle;
public Rectangle GetRectangle
{
get
{
return ...
-3
votes
1answer
144 views
How long would it take to learn c# if I know c++? [closed]
I already know c++, having worked through Accelerated C++ reading all the chapters and doing all the problems, with a bit of college coursework in C++ as well.
From what I read, I seem to have ...
3
votes
1answer
146 views
Storing items in external data files
My project, in its current state, keeps all of the info for each inventory item in script files. That means, inventory items and their properties are part of the codebase. This works well, but I'm ...
2
votes
1answer
144 views
XNA Textures with background color
I am fairly new to XNA and I have questions in regards to textures.
Most of my of textures have a background color along with the overall image (white, black, or whatever). This is quite ugly as the ...
0
votes
2answers
92 views
How do I achieve one touch one shot for WP7 game?
I want to be able to have a sprite shoot in a game for WP7.
What I have at the moment is that as long as the shoot button is held down the sprite constantly shoots.
How do I sort it that only one ...
2
votes
1answer
136 views
How to implement in-game purchase?
I am currently developing an indie game using XNA/C#. I would like to give players the opportunity to try a free (but somewhat limited) demo version of the game. Nevertheless, the player should be ...
1
vote
4answers
428 views
What is a good way to load more than a million images for a collectible card game?
I'm using C# with MonoGame and I'm wondering what would be an efficient way to load more than a million card images for a collectible card game. More cards would be continuously added in future ...
3
votes
1answer
143 views
Dynamically save an assetbundle during run time
I'm wondering if it is possible to dynamically save / amend a current asset bundle during the running of my Unity application.
I've been looking into this for a few hours, but can't find anything ...
0
votes
1answer
114 views
Tile Draw Order
I started working on a tile engine recently and have been trying to get this depth sorting for the tiles right. I am using XNA and the SpriteSortMode.Deferred to get the tiles to sort correctly in the ...
5
votes
1answer
224 views
Detecting Light Intensity Around Characters
Later Edit
Since there seemed to be a bit of confusion: I am asking this for purely didactic reasons, I'm not searching for the most efficient solution. Reformulated question: I'm working under ...
1
vote
3answers
136 views
Objects being drawn on wrong layers
I have the main game (Game1.cs) draw the sprites like so:
//Clear everything
GraphicsDevice.Clear(Color.CornflowerBlue);
//Begin drawing
...
0
votes
2answers
312 views
How to make a smooth movement in XNA?
I'm trying to make a nice controls for my game, but I can't achieve enough SMOOTHNESS.
if (kbState.GetPressedKeys().Length != 0 && _direction != Vector2.Zero)
{
...
1
vote
0answers
150 views
3D Animations in XNA 3.1
Well, guys. I'm in a Game Design class at school. Before you ask "WHY ARE YOU USING 3.1 INSTEAD OF 4" -- I would like to point out that C# 2008, and .NET framework 3 is NOT my preferred environment, ...
1
vote
2answers
182 views
2D tilemap editor UI--how do I disable editing while save/load dialog is open?
I'm working on a basic 2D tilemap editor in C#/XNA. Currently, it displays the map through a picturebox through which XNA's output is being routed, and editing is accomplished through simply checking ...
2
votes
3answers
283 views
Minecraft like blocky-clouds
We are working on a minecraft-like block-based engine/lib. Lately I've started working a blocky-clouds as in minecraft;
So it appers that in minecraft, clouds are not procedural. I'm still looking ...
2
votes
3answers
194 views
Complex Scaling
I've been trying to figure this thing out for weeks now, but with no luck.So, I am creating this program in WindowsForms and Xna, that allows users to create a 3D room. By draging and customizing ...
0
votes
1answer
117 views
Vector2's static methods and the garbage collector
I discovered that Vector2's static methods return a different Vector2 from the parameters you give them and I'm under the impression that creating new objects and dereferencing old ones on this kind ...
1
vote
1answer
386 views
XNA HLSL 2D outline shader
I have gotten into quite a bit of trouble getting my rendering correct in my tile based 2D game.
This kind of shader is surprisingly annoying to write, I've heard (we used it in one of our 3D ...
4
votes
2answers
504 views
Entity Component System: Retrieving components quickly [duplicate]
Possible Duplicate:
Retrieving components from game objects (entities)
I'm working on an entity-component-system game at the moment. I've looked in particular at the Artemis framework and a ...
3
votes
2answers
184 views
How do I properly use particle simulation in Unity?
So I'm using Unity's simulate function to pre-render particles. It seems that simulate is not quite working as to what I expect. It's most likely a setting that I missed. But I just really cannot find ...



