Questions tagged [spritebatch]

A group of sprites that can all be drawn with the same settings

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
230 views

Batch z-ordering problem in Cocos2d (Python)

I have a weird problem with my hexmap drawing code. My code uses "squished" hexagons to achieve a pseudo-isometric view. Because of that, the order of drawing them on screen matters a lot. ...
2
votes
0answers
1k views

Depth sorting 2D textures in a batch with OpenGL ES 2.0

I have a combo of texture atlases and sprite batches in an OpenGLES 2.0 2D game I'm developing which is working well, but I have a problem with depth sorting. I'm using atlases to reduce the number ...
1
vote
0answers
85 views

How can I draw a snapshot of the game within the game?

I'm making a game in libGDX wich the main focus is "recursion", so I can play multiple instances of the game in itself, flowing through "layers" of games. Currently its mechanics work perfectly, but I'...
1
vote
0answers
248 views

Scaling/Zooming a SpriteBatch

I am working on my first game with LibGDX and coming from ActionScript3 I am used with the possibility of scaling things more or less the way I want. I know it works different in LibGDX, but I can't ...
1
vote
0answers
811 views

Stacking Drawing Matrix for SpriteBatch in XNA

I'm trying to make a 2D engine for XNA with SpriteBatch. My object unit is Entity, which can include other ...
1
vote
0answers
236 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 ...
0
votes
0answers
15 views

Spritebatch clears screen white

I have 2 actors one is drawing a table one is drawing with spriteBatch. They both drawing well if they are seperately added to the stage. Adding both to the stage ends up with a white full screen ...
0
votes
1answer
42 views

Aligning animation frame assets with different sizes

I have code that changes texture in each frame depending on the player's state - walking, idle. My problem is that the idle texture (from separate png) has a slightly different size, and due to that ...
0
votes
2answers
5k views

SpriteBatch being drawn outside of Stage?

Currently working on my first game, though running into some problems with libgx and screen aspect ratio. What I have is a Stage which contains things like menu buttons etc, and the rest of the game ...