When testing my game, I run into a problem as soon as the player dies due to a collision with an enemy. When that happens, the scoreboard appears, but the score does not, and I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MethodInfo-6552()[Source/scripts/SceneEvents_0.hx:221]
at com.stencyl::Engine/draw()[C:/Program Files/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:3154]
at com.stencyl::Engine/postUpdate()[C:/Program Files/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2667]
at com.stencyl::Engine/onUpdate()[C:/Program Files/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2609]