Make entity auto switch

So our game is based off entities not scenes and Iḿ trying to make the ball automatically go to the next level(next entity).Any ideas?

Entity player with childs first entity/second entity/etc. when you start first entity is enabled when you reach second level you do first entity.enabled=false and second entity.enabled = true so it switch.

To expand on what @ayrin said, you may also want to do this once an event is fired

DO what??

Make your entity auto-switch

Yeah that was the the question

You should have a level variable somewhere so if (level=2) { this.entity.firstentity.enabled=false;
this.entity.secondentity.enabled=true; }

hmm I see I´ll try that soon