C
C#3w ago
TOLOXI

Null reffrence from Json file(monogame)

Im making a simple game using a json file to generate the map. The code was working fine before i tried to addan "obstacle" to my code. after i start it im getting a null reffrence. the commented part is the line of code that makes the solution crash
No description
1 Reply
becquerel
becquerel3w ago
does your json have an 'obstacles' section? and have you confirmed it's valid json? might also be an issue in the SolidObstacle constructor
Want results from more Discord servers?
Add your server