Tagged Questions
3
votes
1answer
84 views
center point of a text?
i'm drawing a text using a spritefont and the draw.string function of the spritebatch object. in some point, i need to augment the size of the text, so i use a variable to scale it. all this is ...
0
votes
1answer
45 views
My Sprite Rectangle moves, but my sprite doesn't
Here's the issue, When I build, everything loads fine, everything works, but then, when you enter the game, the sprite is there. However, The sprite does not move, the sprite RECTANGLE does. Meaning ...
-2
votes
1answer
50 views
XNA rendertarget sprite batch problem [closed]
When using this code:
public static Texture2D ShowHealthBar(SpriteBatch spriteBatch,Texture2D empty, Texture2D full, float health)
{
spriteBatch.Begin();
RenderTarget2D ...
1
vote
2answers
104 views
Textures loading too large on smaller monitors
I have an XNA game, and when i run the game the textures load all good on my computer and on my tv and they're all bring drawn in the right position. But on my laptop, which screen is smaller then ...
2
votes
1answer
712 views
XNA how to draw some sprites tiled/wrapped and others not?
I already have:
mySpriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend);
and take care to draw all my sprites in order.
I now want to draw some textures tiled. Do I have to create ...
1
vote
0answers
164 views
Sprite sorting issues
I apologize for the vague title, I'm not sure how else to phrase this problem.
I am using tIDE to assist me in my game's world development. To give a dynamic effect to map layers within tIDE, it has ...
3
votes
2answers
736 views
XNA 4.0 SpriteFont not displaying all Characters
Am looking for a little help and trying to use SpriteFont in my XNA 4.0 game but the problem is am displaying to string "This is a test" but all that's displayed on the screen is "This is st" so ...
2
votes
1answer
2k views
Why isn't my sprite being drawn in the correct position in XNA?
Sorry if this has been asked before, but I can't seem to find it here. I'm trying to make an asteroids clone in XNA. I took the Game State Management project and am making new classes for things like ...
0
votes
1answer
1k views
XNA 4.0 - Mixing 3D and 2D - SpriteBatch putting weird alpha texture over whole scene
I am working on a game in XNA 4.0 that has been entirely in 3D so far but now I want to incorporate a HUD.
I have tried doing a simple test using spriteBatch as such:
spriteBatch.Begin();
...
