error with the tutorial

Apr 16, 2013 at 6:36 PM
I downloaded the engine and the tutorial contents. I set it up and it compiled but when I run it shows me this error:

An handled exception of type ' System.NullReferenceException' occurred in xTileGame1.exe

Additional information: Object reference not set to an instance of an object

then it highlights (in yellow) this line in the code:


does anyone know what happened or what I did wrong?
Apr 19, 2013 at 12:48 PM
I would look at whether you initialised the map reference first.
Apr 19, 2013 at 3:41 PM
That fixed it :D thanks... Where do I go from here if you don't mind pointing me in the right direction to learn how to do collision and other useful things?
Apr 19, 2013 at 4:03 PM
Start by searching "collision" on the project forums. There are several discussions, some also point to external xTile tutorials that cover collision detection.