Updating app

Hi! I am creating game with levels. When level one was finished level 2 is the next. And if level 2 executing, level 1 still shows in level 2. For example, the car and the race track in level 1 shows in level 2. How could I remove the car and racetrack from level 1 to level 2. Any answer will be appreciated.

[java]rootNode.detachChild(car1);

physicsSpace.remove(car1);

rootNode.attachChild(car2);

physicsSpace.add(car2);[/java]

The same for the racetrack. Shall I write that down for you too? xD

1 Like

Thanks normen. These really helped. :slight_smile: