error with the tutorial

Apr 16, 2013 at 5: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:


map.LoadTileSheets(mapDisplayDevice);

does anyone know what happened or what I did wrong?
Coordinator
Apr 19, 2013 at 11:48 AM
I would look at whether you initialised the map reference first.
Apr 19, 2013 at 2: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?
Coordinator
Apr 19, 2013 at 3: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.