I'm new to Greenfoot, wondering how to resize my actor for he is way to big would like him a bit smaller what would the code be for this? Thanks


1 2 3 4 5 6 7 8 9 10 11 12 13 | import greenfoot.*; public class ClassName extends Actor { public ClassName() { GreenfootImage image = getImage(); image.scale(image.getWidth() - 10 , image.getHeight() - 10 ); setImage(image); } // rest of class } |
1 2 3 4 5 6 7 8 | import greenfoot.*; public class Blip extends Actor { public void act() { } } |