if (isTouching(teleporter.class))
{
setMainActor(new Wombat(), 250, 300); // the int parameters are centered window x and y ranges
// to start the main actor elsewhere
mainActor.setLocation(-220, 50);
}
if (isTouching(teleporter.class))
{
setMainActor(new Wombat(), 250, 300); // the int parameters are centered window x and y ranges
// to start the main actor elsewhere
mainActor.setLocation(-220, 50);
}Actor wombat = new Wombat(); ((ScrollWorld)getWorld()).setMainActor(wombat, 250, 300); wombat.setLocation(-220, 50);