Hi. So my problem is to stop the backgroundmusic from another class. The gameover method is located in another class, and the background music is located in the world class. So how do I stop it from another class?
Here's what i've got. This is located in player 1
public boolean gameOver()
{
if ( fd_spist == 10)
{
FD_world world = (FD_world)getWorld().getObjects(FD_world.class).get(0);
world.backgroundMusic.pause();
return false;
}
return true;
}
