i decided to create one new last fourth level for my game
the third level are actually 4 third levels (Level 3A, 3B, 3C & 3D)
so you could always choose a certain path to get to one level and you could always get your score from the previous level to the next one
as i said will be the last level just one level (4); no matter if you were in 3A or 3C, you always get to level 4
so i have this code but it doesn't work to get the score to level 4 from any of these level 3
this codes works if im getting from 3A to 4 but i want the code to change, that it works from all 3s
unfortunately i don't have the Level 3 Worlds not in a subclass and it doesn't work
how can i change just this code, so that it works the way i want?
thanks
if(Greenfoot.isKeyDown("space")) { Counter counter = ((level3A) getWorld()).getCounter(); Greenfoot.setWorld(new Level4(counter)); }