This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Discussions
You need to login to take part
Current Discussions
boss health?
By davemib123, with 5 replies.
Last reply by davemib123, over 13 years ago:
yea I figured that when I was testing it. thanks for the tips :)
Making actor score points/menu tourbleshooting.
By ThinkingPainter, with 73 replies.
Last reply by ThinkingPainter, over 13 years ago:
Thank you dan it worked, glad too have some actual working code
Counter Trouble
By CrazyGamer1122, with 27 replies.
Last reply by danpost, over 13 years ago:
In the code you provided, you have the wrong bracket at line 64, and if my count is right, 2 extra brackets at the end. The new error is in the alligator class, in its constructor. You are probably using either 'getX' / 'getY', or one of the 'getObjects' commands, which will not work in the constructor.
Looping enemy numbers
By davemib123, with 2 replies.
Last reply by davemib123, over 13 years ago:
Great thanks for this :)
Lord King Battle
By yole, with 5 replies.
Last reply by yole, over 13 years ago:
Hm it's what I've read, read on the Activity page. Btw, now I'm referring to the update from 1 day ago.
Drawing words on top of actors
By gusbus123, with 6 replies.
Last reply by gusbus123, over 13 years ago:
k thx ill do that.
Mouse Pointer
By Denzien, with 2 replies.
Last reply by Denzien, over 13 years ago:
Actually, what you said helped me, but only because you pointed out line 7, it was just meant to say: <Code Omitted> So thanks ^^ you still helped me, but just not in the way you expected :3
optimize the Documentation
By Mux, with 2 replies.
Last reply by Mux, over 13 years ago:
Thank you.
create a GreenfootImage from a BufferedImage
By Michionlion, with 2 replies.
Last reply by davmac, over 13 years ago:
Is there anyway to do that? Help would be appreciated!
You can create a new GreenfootImage of the correct size, and then draw the BufferedImage onto it. Use getAwtImage() to get the BufferedImage which backs the GreenfootImage, and then use any of the appropriate methods to do your drawing (probably use getGraphics2D() and draw the other BufferedImage via that).
EDIT: or a way to write a BufferedImage into the world.
Yes, in the same way.
Selecting which world should be executed first?
By Zamoht, with 9 replies.
Last reply by Duta, over 13 years ago:
Zamoht, there are many naming conventions like that - In Java, here's some of them:
Method/variable: mixedCase
Constant: UPPER_CASE
By which I mean: mixedCase = Starts with lowercase, when you have more than one word the new words start with a capital letter UPPER_CASE = All uppercase, when you have multiple words they're seperated with an underscore Also: CamelCase = (e.g. For naming classes) The same as mixedCase, but starts with a capital letter lowercase = (e.g. For naming packages) All lowercase, often no underscores between words Sometime
Best way to add Actor visual effects, after death.
By ThinkingPainter, with 5 replies.
Last reply by erdelf, over 13 years ago:
you could make a gif-animation. Greenfoot provides a class to play gif files.
Reading a File
By PHORNE31, with 21 replies.
Last reply by PHORNE31, over 13 years ago:
Thanks, I'll give it a try.
getting integers
By gusbus123, with 2 replies.
Last reply by gusbus123, over 13 years ago:
k ill try that. Edit: yep it works. Thx.
Problems using multiple worlds!
By Zamoht, with 2 replies.
Last reply by Zamoht, over 13 years ago:
Thank you very much! I changed the code a little: <Code Omitted> since 'world.resetLevel();' didn't work.
getting the world.
By gusbus123, with 2 replies.
Last reply by gusbus123, over 13 years ago:
k thx yer it works
957
958
959
960
961
962
963
X