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

2016/10/4

Angry Birds Type of Game.

iaselen iaselen

2016/10/4

#
Is there anyone to give a simple example of drawing line in Greenfoot? I'll drawLine to make string for the catapult.
danpost danpost

2016/10/4

#
If the line is to move at all, it is best to have an actor class describe and control the object. Just create a GreenfootImage object of whatever length and a narrow width and fill the image with any color. Set the image to the actor. As an actor, its rotation and location can be adjusted as necessary through time. If you unsure about GreenfootImage objects, refer to the API documentation (use the 'Documentation' link along the header of this page and go to the 'online' documentation of the classes greenfoot provides.
iaselen iaselen

2016/10/6

#
Many thanks. I 'll try it.
You need to login to post a reply.