So, in my Player actor, I have a "HEALTH" variable which draws it's value from the GameManager, which is a sub-class of World.
I initialize the empty GameManager reference. And then in the constructor, I set "gm" to point to the GameManager. And yet it keeps throwing NullPointerException, on the part where I set HEALTH equal to the playerHealth variable in the GameManager. And I'm sure I put the variables as public in GameManager.
As far as I know, what I've put the references and stuff in the correct order. Yet the NPE is still thrown. Maybe the world doesn't exist until "Run" is clicked? I'm hoping there's an easy fix to this problem.
GameManager gm;
public Player()
{
gm = (GameManager)getWorld();
HEALTH = gm.playerHealth;

