This site requires JavaScript, please enable it in your browser!
Greenfoot back
Yoman
Yoman wrote ...

2012/6/27

making pics smaller

Yoman Yoman

2012/6/27

#
Hi, the program i have a problem with is one that you probably already know- PENGUINS<VS> ZOMBIES I have a maze, and i am continuing to build it, but i wanted to know how to make pictures smaller. When i finalized the battle maze, i didn't know that the penguin was too big to fit in the passage the zombies have no problem, but the penguin can't get through. I was wondering if anyone knew how to make the penguin smaller, and if you do, could you tell me? Please?
tylers tylers

2012/6/27

#
getImage().scale(x,y)
Yoman Yoman

2012/6/27

#
thanks!
Denzien Denzien

2012/6/28

#
You could just open the file in an Image Editing programme like Paint.net and then edit it in there.
ThinkingPainter ThinkingPainter

2012/6/28

#
       public Blip()  
 {  
    GreenfootImage image = getImage();  
    image.scale(image.getWidth() - 10, image.getHeight() - 10);  
    setImage(image);  
 }  
here's the code im using change blip to you actor name and change the numbers to your liking. 0 to -40
You need to login to post a reply.