System.NullReferenceException - Object reference not set to an instance of an object
Bubbleob 05 Apr 2016 03:18
I've finally got XNA to cooperate with using the DLLs, (thanks for the post on another thread RBW) but now I'm getting the below error when I'm trying to run the Build.
System.NullReferenceException - Object reference not set to an instance of an object
with this section of code highlighted (where the ** are):
protected override void LoadContent()
{
// Create a new SpriteBatch, which can be used to draw textures.
spriteBatch = new SpriteBatch(GraphicsDevice);
levelSet = Content.Load<LevelSet>("Level");
**currentLevel = levelSet.GetLevel("Level").CreateInstance();**
// TODO: use this.Content to load your game content here
}
am i mising?