The coding in my game is when main actor touch M29 actor can insert another world...
soalan29 is fine but soalanbos1 cannot insert the another world or because the picture not same....
i set all picture same except soalanbos1...
i have many question all doing fine except soalanbos1..
public void soalan28()
{
Actor M28;
M28 = getOneObjectAtOffset(4, 4, M28.class);
if (M28 != null)
{
World world;
world = getWorld() ;
Greenfoot.setWorld(new Q28(getWorld()));
world.removeObject(M28);
Greenfoot.playSound("collide.mp3");
}
}
public void soalan29()
{
Actor M29;
M29 = getOneObjectAtOffset(4, 4, M29.class);
if (M29 != null)
{
World world;
world = getWorld() ;
Greenfoot.setWorld(new Q29(getWorld()));
world.removeObject(M29);
Greenfoot.playSound("collide.mp3");
}
}
public void soalanbos1()
{
Actor Bos;
Bos = getOneObjectAtOffset(4, 4, Bos.class);
if (Bos != null)
{
World world;
world = getWorld() ;
Greenfoot.setWorld(new Qb1(getWorld()));
world.removeObject(Bos);
}
}