Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Tiled animations not displaying properly

$
0
0

@Aaron wrote:

Hello, I'm using TiledMapRenderer, which is displaying static tiles just fine. However, when it tries to render an animated tile, it appears the source rectangle's top left coordinate is always 0, 0, while the bottom right coordinate is correct. So instead of seeing each individual frame, I'm seeing all tiles from the top left of the texture to the current frame crammed into the destination rectangle. It is "animating" but the source rectangle just grows each frame until the animation restarts.

I am simply calling TiledMapRenderer.Draw(). Is there more to rendering animated tiles, or should that call be drawing them properly?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles