Uncaught Exception Error



  • Just started working on my project again, but when I go to test my game, it just crashes. It either crashes when I hit play, or it just doesn't start at all. it gives me this error when I start the game using Neko
    0_1607738308842_f907a736-9f62-4821-a8fd-b0d4a3cd1d2a-image.png
    Any help would be appreciated!



  • Looks like you are doing something wrong in your Coin.hx file at line 11. Looking at the call stack, you might be trying to set a variable on a sprite that you don't have access to?



  • Yeah, that was the reason. I put super(x, y) after the loadGraphic() function. I made super(x, y) before loadGraphic() and that solved the problem.


Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.