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

danpost's Comments

Back to danpost's profile

How about: if(((Actor)getObjects(Bird.class).get(0)).getX() > getWidth() - 65)
@Morran, maybe you want to download the source and see how Duta managed to create such clean scrolling graphics.
Create a in the Paddle class called 'goBig()' which resizes (or re-creates) the image and use image.drawString(String, int, int) or create a seperate image with new GreenfootImage(String, font, Color, Color) and image.drawImage(GreenfootImage, int, int); either way, finish with setImage(image). The method can be public and called from the world using a reference to the paddle object 'paddle.goBig();' (if 'paddle' is the reference name).
@dlanni, drag the bird just a little down-left and release!
Have patience matt.milan! When you hit run, just let it go, and wait. The orbs will eventually come to you, and you will win!
@dlanni, start a discussion thread on this for help (I may be able to provide some).
Bit of a bug, when baby gets stung (pardon the pun). You have BOTH messages 'Oh Dear, Baby got stung.' AND 'Well done, bees cleared.' showing up (this second message probably should not be showing up in this case).
Maybe you should start a discussion thread for help on this. For one thing, code does not go well here. And besides, others might benefit by the responses to questions like this, and will not normally see them (once off the latest activity page) if they are comments to scenarios.
Give me a chance to clean it up a bit, and add some documentation. Hopefully, I can have it up soon.