Hello :)
I'm try to make a system that switchs the map wen you hit a object, So my that was to make a system that counts up and than look with a IF stament witch map it needs to switch to. but the porblem is besacly it gose to it orgnal value
Kind greatings, Sander
public void act()
{
Nextmap();
}
private void Nextmap(){
int x;
if(isTouching(Fish.class)){
if(c==1){Greenfoot.setWorld(new Map1());}
if(c==2){Greenfoot.setWorld(new Map2());}
if(c==3){Greenfoot.setWorld(new Map3());}
x++;
}
}

