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
Gegner sollen mich verfolgen.
By danixxx12, with 6 replies.
Last reply by danixxx12, about 9 years ago:
Vielen vielen Dank. Habe es dank deiner Hilfe nun geschafft. :)
isKeyDown single action.
By mrlemon, with 6 replies.
Last reply by danpost, about 9 years ago:
The 'delay' method of the Greenfoot class suspends the execution for the specified number of act steps (like a temporary pausing of the scenario). Jumping is the rising and falling of an object over several act steps. You need to code it for what needs done during any one individual act step. How you implement the coding is up to you (whether you want to limit the height and just control the direction, like floating up and down, or you want to make it more realistic by applying a downward acceleration to the vertical speed, for the effect of gravity. Either way, or whichever way you choo
Health Bar
By ali18, with 1 reply.
Replied to by Super_Hippo, about 9 years ago:
The code is saying "if the rock is touching the boat, remove the boat". Exactly that is what is happening. I am not sure if the rock should move at all, but maybe you should remove the rock and not the boat. Usually, I would say the boat touches the rock and not the other way around, so you could place the code in your boat class and check for intersections with rocks.
Using JFileChooser in Greenfoot
By MrBradley, with 2 replies.
Last reply by Yehuda, about 9 years ago:
Your fix code just changes the appearance of the control(s). I'm not saying I had your problem and I tried your fix, what I'm saying is I use that code when I want to change the
Look and Feel
from the Java Metal L&F to the one of the system.
Why it didn't remove the Boss1???
By Timon, with 12 replies.
Last reply by Timon, about 9 years ago:
ou.ok. Thank you very much;)
getImage()
By mrlemon, with 5 replies.
Last reply by mrlemon, about 9 years ago:
That did it!!! Thanks a lot Danpost!!!
Another method please???
By Faheem, with 5 replies.
Last reply by danpost, about 9 years ago:
Try using: <Code Omitted>for the first line.
I am having trouble with my pong game
By Tristater4, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
Change line 66 in the Ball class from <Code Omitted>to <Code Omitted>
How can I make my counter keep the same value while changing worlds?
By Alola_Sandslash, with 1 reply.
Replied to by danpost, over 9 years ago:
Set the value of the new Counter object in the new World object to the current value of the Counter object in the current World object: If you need to know how to do it, you will need to show codes for both World extensions and the code where the transition between the two is to take place (indicating where that transition code is located).
Code for getting an object on the screen?
By Alola_Sandslash, with 3 replies.
Last reply by danpost, over 9 years ago:
Alola_Sandslash wrote...
It cannot find the getObjects method...
Then, you are probably in an Actor subclass and need to use 'getWorld().getObjects...'.
Phantom Object
By DuckGod, with 21 replies.
Last reply by DuckGod, over 9 years ago:
Well Thx for the help but seems like my suspicions were correct, i moved the level to a diffrent case and just ignored case 10 for it seemed to be completly broken, for some weird reason.
How do I make the transition of images delayed?
By Alola_Sandslash, with 5 replies.
Last reply by Alola_Sandslash, over 9 years ago:
It works much better now except while going right the actor's images flip between facing left and facing right every second or so.
Spawn only if none are in the world?
By alexaa, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
The following will return 'true' if no Orb is in the world. You can use it as another if condition. <Code Omitted>
Help Me Please :(
By dadansi, with 6 replies.
Last reply by danpost, over 9 years ago:
I will respond here since you asked for me specifically. Unfortunately, I am not at all familiar with the workings of android to help as far as screen sizing or what compiling program might work for you -- sorry.
copyright site:greenfoot
By smcgee, with 1 reply.
Replied to by davmac, over 9 years ago:
I'm afraid that we can't really provide legal advice. There may be provisions such as "fair use" that allow for use of copyright-protected work, though these will vary from country to country; it may or may not be enough that the work is not used for profit and is used in an educational context. I would suggest that the safest course of action is to have your students produce their own artwork or use images from sources that expressly allow re-use. You can use
CC search
for example to find such images.
341
342
343
344
345
346
347
X