I'm trying to scale the button image down after adding the button in, but it seems like I'm doing something wrong, can somebody help explain to me what did I do wrong here?
This code in particular has underlined and an error message cannot find symbol - method scale(int,int) comes out
This is the code that I'm using to call out the buttons:
Buttons[i].scale(30, 30);
.scale
public class MyWorld extends World
{
private Actor MKButton = new SimpleActor(), HButton = new SimpleActor(), BButton = new SimpleActor(), AButton = new SimpleActor(), SButton = new SimpleActor(), KButton = new SimpleActor(), EButton = new SimpleActor(), TButton = new SimpleActor();
Actor Buttons[] = {MKButton, HButton, BButton, AButton, SButton, KButton, EButton, TButton};
private int ButtonsArraySize = Buttons.length;
public MyWorld()
{
for( int i = 0; i <= ButtonsArraySize; i++)
{
Buttons[i].setImage(Buttons[i] + ".png"); Buttons[i].scale(30, 30); addObject(Buttons[i], 1200, (70 + (i*50)));
i++;
Buttons[i].setImage(Buttons[i] + ".png"); Buttons[i].scale(30, 30); addObject(Buttons[i], 1300, (70 + ((i-1)*50)));
}
}
}

