I am trying to scale an image. This is what I have:
I've had a look at the API and it has a scale method. Question is how do I use it? I have tried:
but it just says identifier expected. Any ideas?
private final GreenfootImage Midle= new GreenfootImage("mario-idle.gif"); private boolean walking; private boolean facingRight; /** * An example of a method - replace this comment with your own */ public Mario() { this.setImage(Midle); walking = false; facingRight = true; }
private final GreenfootImage Midle= new GreenfootImage("mario-idle.gif"); Midle.scale(50,50);