Hello,
Actually I`m trying to change the level of my world, when I reach en energy of >=50
I tried it a lot, and I also don`t get an error but the level however does not change:S
My first world is called Teletubbieswelt and the level/world I want to go to when I reach energy>=50 is called Teletubbieswelt 2
I tried to do it like that:
In the public void act method I did checkNextLevel();
private void checkNextLevel()
{
if (energy >=50)
{
if (level == 1)
{
level = 2;
}
else {
level = 1;
}
}
}

