Is there a way to select a small portion of a image to set as the actor sprite? Aside from the obvious move only a part of the image to a different image that would result in like 20 images for each character
GreenfootImage bigImage;
bigImage = new GreenfootImage("bigImage.png");
GreenfootImage[] quads = new GreenfootImage[4];
for (int i=0; i<4; i++)
{
int x = i % 2;
int y = i / 2;
quads[i].drawImage(bigImage, -50*x, -50*y);
}GreenfootImage bigImage;
bigImage = new GreenfootImage("bigImage.png");
bigImage.resize(135, 180);
GreenfootImage[] quads = new GreenfootImage[4];
for (int i=0; i<12; i++)
{
int x = i % 3;
int y = i / 3;
quads[i]=new GreenfootImage(45, 45);
quads[i].drawImage(bigImage, -45*x, -45*y);
}GreenfootImage[] quads = new GreenfootImage[12];