So basically I want to know how to access the current "Score" that is present in a variable in another Actor (called Score)
MyWorld:
private void addPowerUP()
{
if(Score.class.score == 1000 ){
int x = Greenfoot.getRandomNumber(1366);
int y = Greenfoot.getRandomNumber(768);
addObject(new PowerUP(), x, y);
}
}
