Questions tagged [spritebatch]

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

12 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
242 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. ...
3
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
1answer
16 views

Spritebatch drawing the other way

I am drawing a rectangle using a emptytexture (1x1) and I use the following: ...
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
254 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
818 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
237 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
24 views

How to add sprite batch on tile in isometric map in Libgdx

I'm using Libgdx to create an isometric game , but now I have problem. I want to add sprite on tile (3,4) , but I can't do this, so I searched on stackoverflow , and I found this code :- ...
0
votes
0answers
25 views

DirectXTK: SpriteBatch::Begin and Draw methods give LNK2019: unresolved external

Right now, im using DirectXTK (version 2020.2.24.4) and Visual Studio 2019. My declarations look like this: ...
0
votes
0answers
17 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
61 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 ...