This is my first year of Greenfoot and im still learning new codes. I have an image that i need to scale down and here is the code i have:
/**
* Write a description of class BlockOne here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class BlockOne extends Blocks
{
/**
* Act - do whatever the BlockOne wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
scaleDown();
}
public void scaleDown()
{
GreenfootImage image = getImage();
image.scale(5, 5);
setImage(image);
}

