(May involve flashpunk.) I have a function advanceLevel() in MyGameWorld. MyGameWorld creates the player and the level. I want to call advanceLevel() inside the player with a line like this:
MyGameWorld.advanceLevel();
But, I get an error like this:
"Error: Call to a possibly undefined method advanceLevel through a reference with static type Class."