Would I add that to above color or the main area? I keep getting illegal start of expression:
It also told me to add the ; after get(0) and I'm just making sure if it would work. Also, what is the get(0) for?
public void changecolor2()
{
Tile tile = (Tile)getOneObjectAtOffset(0, 0, Tile.class);
int arrowColor = (Arrow)getWorld().getObjects(Arrow.class).get(0);).getColor();
color = arrow.getColor
setImage("egg"+color+".png");
}
