i have a platforming game where i have a start and goal actor class which are just used for detecting when the player reaches the end and to spawn the player at the start of the level.
i only know how to change from the first world and to the second but i would like to change to a third world when i hit the goal in the second level
1 2 3 4 5 6 7 8 9 10 11 | public void hitGoal() { Actor Goal = this .getOneIntersectingObject(Goal. class ); if (Goal != null && numLevel == 1 ) { Greenfoot.setWorld( new Level2()); } } |