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

2015/8/19

I want help in increasing stick length

GABZ GABZ

2015/8/19

#
PLz post a code for it
danpost danpost

2015/8/19

#
GABZ wrote...
PLz post a code for it
GreenfootImage image = getImage();
int imgW = image.getWidth();
int imgH = image.getHeight();
image.scale(imgW+dw, imgH+dh);
where 'dw' and 'dh' are the changes in the size of the image width and height (which need replaced with actual values).
You need to login to post a reply.