I’ve been able to import and render a Tiled Map thanks to Monogame Extended libraries. Yet, the original image is quite small (16px16p), and I wish to be able to play around with some scaling. Most of the things I’ve found out at the web / forums goes around working with an already implemented camera, which I’m not using right now.
Some places suggest using a “Matrix.CreateScale(Vector3(x,y,z))” in the “SpriteBatch.Begin()” method. Yet, If I implement it, the map is not being scaled.
This is the code I’m using:
_spriteBatch.Begin(SpriteSortMode.Immediate, null, null, null, null, null, Matrix.CreateScale(Vector3(2,2,0)));
_tiledMapRenderer.Draw(_tiledMap.GetLayer(“Floor”), null, null, null, 0);
_animation.Draw(spritebatch, _location, tint);
Thanks a lot for anyone willing to give me a hand in this issue.
p.s. the animated sprite does not scale either.
Btw … could anyone please give me a hint in how to format my code here at the post? Thanks