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
Need help with loops!
By Tym5, with 9 replies.
Last reply by Tym5, over 13 years ago:
I actually figured this out not to long ago, thank you so much! Now I just have to figure out how to add random letters (a-z) and make the F key a "toggle" so it fills whatever shape is being produced
not a statement ?
By programmer22, with 13 replies.
Last reply by danpost, over 13 years ago:
@b321234, Absolutely non taken! I am just glad you were able to supply more exact help to programmer22.
A very strange nullPointer...
By darkmist255, with 23 replies.
Last reply by darkmist255, over 13 years ago:
Thanks :D!
How to make an image black and white?
By DerriQ, with 2 replies.
Last reply by Busch2207, over 13 years ago:
try this code: <Code Omitted>
How to solve it: java.lang.IllegalStateException: Actor not in world.
By b321234, with 5 replies.
Last reply by kiarocks, over 13 years ago:
Another idea is to remove the object at the end of the act() method.
need help
By programmer22, with 4 replies.
Last reply by mjrb4, over 13 years ago:
Or of course manage the indentation properly as you go, in which case you don't tend to run into problems like these nearly as much...! :)
Interesting Error
By AwesomeNameGuy, with 7 replies.
Last reply by kiarocks, over 13 years ago:
I like crazy code!
OMG I'm stuck with some basic stuff!!! HELP ME PLZZ!!
By b321234, with 4 replies.
Last reply by darkmist255, over 13 years ago:
Great :D!
enemies
By jonnyo98, with 5 replies.
Last reply by darkmist255, over 13 years ago:
Great!
HealthBar Help
By DMCGames, with 4 replies.
Last reply by AwesomeNameGuy, over 13 years ago:
Or you can do this: <Code Omitted>That way you don't have to draw 20 different images. This creates a red health bar inside a black rectangle that is 20X100 pixels in size. Gotta import java.awt.Color; to use Color.
Button or Key down that leads to a website url?
By minecraft15, with 1 reply.
Replied to by mjrb4, over 13 years ago:
You could potentially use the browse method on the desktop class: http://docs.oracle.com/javase/7/docs/api/java/awt/Desktop.html ...but bear in mind this won't work on the gallery. It's probably best just to display a link!
Greenfoot Chapter 7 Problems
By drumstick93, with 2 replies.
Last reply by drumstick93, over 13 years ago:
that actually helped alot, and worked really well...but it's an end of the year project I'm doing and I thought I should take it a step further. So instead of basing a change of level off the asteroids, I thought I'd base it off of the score, so i can have multiple levels. I know I need to assign a variable to the counter so i don't get the non-static method error, but I'm not sure how to do so. private void NewLevel() { Counter counter = Counter.getValue(); if (counter == 69) { Greenfoot.sto
quick question
By suushi, with 12 replies.
Last reply by suushi, over 13 years ago:
whew! ok. thank you very much!
How to make a "Check for Updates" Button
By minecraft15, with no replies.
Ok, so I have created a video game. I am putting this video game up on my website where users can purchase it. Now, I would love to know how I can implement either a Check for new version updates button, or an auto detector for a new version of the game. Is this even possible to implement into a green foot game or Java in general? Thanks to anyone that helps.
project help
By suushi, with 5 replies.
Last reply by suushi, over 13 years ago:
if ( Greenfoot.isKeyDown("2")){ if (Greenfoot.isKeyDown("2")) isLooping = !isLooping; if (isLooping) { java.awt.Color a; int r = Greenfoot.getRandomNumber(255); int g = Greenfoot.getRandomNumber(255); int b = Greenfoot.getRandomNumber(255); int x = Greenfoot.getRandomNumber(this.getWidth()); int y = Greenfoot.getRandomNumber(this.getHeight()); int x1 = Greenfoot.getRandomNumber(this.getWidth()); int y1 =
1021
1022
1023
1024
1025
1026
1027
X