Hi guys,
I’m trying to use MonoGame.Extended.Tiled in my project (Mac, vscode, source) but issuing the error below.
Argument 1: cannot convert from 'MonoGame.Extended.Tiled.TiledMap' to 'Microsoft.Xna.Framework.Matrix?' [rpg]
My csproj references.
<PackageReference Include="MonoGame.Framework.DesktopGL.Core" Version="3.8.*" />
<PackageReference Include="MonoGame.Content.Builder" Version="3.7.*" />
<PackageReference Include="MonoGame.Extended.Content.Pipeline" Version="3.7.0" />
<PackageReference Include="MonoGame.Extended.Tiled" Version="3.7.0" />
<PackageReference Include="MonoGame.Extended" Version="3.7.0" />
<PackageReference Include="MonoGame.Extended.Graphics" Version="3.7.0" />
Libs:
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using MonoGame.Extended.Graphics;
using MonoGame.Extended.Tiled;
using MonoGame.Extended.Tiled.Renderers;
Code Vars:
TiledMap myMap;
TiledMapRenderer mapRenderer;
Code Initialize:
mapRenderer = new TiledMapRenderer(GraphicsDevice);
Code LoadContent
myMap = Content.Load<TiledMap>("Middsc/gameMap");
Code Draw:
mapRenderer.Draw(myMap);
I would appreciate if anyone could help me.
Best Regards,