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
Help me with the right condition in the If-Else-expression
By Omletti, with 18 replies.
Last reply by Omletti, about 13 years ago:
Ah okay! Thank you :)
Access Method from another Class
By Barador, with 8 replies.
Last reply by Barador, about 13 years ago:
Ok I did it on my own. I copied all the general code with this "int player" in it, into the Player1, etc. classes and accessed them from Bomb the way it's described in the tutorial which Gevater_Tod posted. Thanks anyways for the help.
How to get lives, and have an enemy take them away?
By dangamecreator, with 1 reply.
Replied to by Zamoht, about 13 years ago:
Okay if I get this right you have to do a few things to make it work. First of all you have to declare a health variable or use your lives variable from the Alli class to keep track of your health. Then you have to change the act method for the enemy:
GREENFOOT DARE #1 THEME
By Game/maniac, with 3 replies.
Last reply by Game/maniac, about 13 years ago:
oh, no doing this weekly would be way to much effort. This is monthly like the challenge
made 3 levels and level 1 and level 2 start fine, but level 3 won't start?
By dangamecreator, with 9 replies.
Last reply by dangamecreator, about 13 years ago:
This is what I had to do private void checkNextLevel() { if (getX() == getWorld().getWidth()-1) { if (getWorld() instanceof Desert) Greenfoot.setWorld(new Level3(this)); if (getWorld() instanceof Rocks) Greenfoot.setWorld(new Desert(this)); if (getWorld() instanceof Desert) Greenfoot.setWorld(new Level3(this)); } }
Explosions
By DoctorProfessorYoshi, with 1 reply.
Replied to by Gevater_Tod4711, about 13 years ago:
For an explosion you can either create some explosion images and after every act change the image of an explosion object to the next image or you can use only one image and change it's size. In the Luna Lander scenario you'll find an example for this. Luna Lander is a Greenfoot demo which you'll find in your greenfoot installation directiory.
Hi-tech question about JRE/JDK
By JDNelson, with 2 replies.
Last reply by JDNelson, about 13 years ago:
Thanks for the reply. I since discovered my original analysis was incorrect. I basically had used a third party library. One of the methods did not require an new instance of it's class to be instantiated. This class is obviously not in the system JRE. I had to put the third party jar in (my jre home)/lib/ext/ I have it sorted out now. Thanks again.
Nullpointer exception?
By allekalle, with 2 replies.
Last reply by allekalle, about 13 years ago:
Thanks! That fixed it.
Need help with live counter?
By dangamecreator, with 13 replies.
Last reply by danpost, about 13 years ago:
Please only use one discussion thread for each issue. I answered this problem in the other discussion (as well as above, indirectly). Also, you should not continue others discussion with your own problems (start a new discussion and, if needed, refer to the other discussion).
How to end the game once a co-ordinate has been reached
By DarrenM2012, with 40 replies.
Last reply by danpost, about 13 years ago:
The code starting at 'if(getX() == 17 && getY()==15)' is not within a method (your act method ends just above that line with the closing curly bracket).
Need little help with live counter
By 103163, with 13 replies.
Last reply by Gevater_Tod4711, about 13 years ago:
If you update the value but don't update the board the value will be changed but you will not be able to see that the value changed because the image of the LiveCounter will not be updated. I think you should call the method updateBoard at the end of your livesDown() method.
Need held to end game urgently !
By ConorOwens, with 11 replies.
Last reply by derp2000, about 13 years ago:
oke, thanks
How to fallow rotation from another object "properly"
By oNkas, with 3 replies.
Last reply by oNkas, about 13 years ago:
bourne
your didint work, something maybe wrong. I used what
danpost
sayed and it works fine, so thanks.
Letters
By alagon, with 32 replies.
Last reply by alagon, about 13 years ago:
So it worked...now the only thing left is a gameover screen. I want it to be simple and i have created the subclass with a image, now i just need it to work so that if the bomb is at the bottom of the screen that it pops up and stops the game.
GREENFOOT DARE #1 THEME VOTE
By Game/maniac, with 24 replies.
Last reply by Animateur, about 13 years ago:
evolution
820
821
822
823
824
825
826
X