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
How to fix java.lang.NullPointerException
By SwarmDark, with 3 replies.
Last reply by SwarmDark, about 9 years ago:
Thanks for all the help, this is my first time using Greenfoot and i am learning as I go. I will try to use your suggestion to simplify the code
setting drawing transparency
By Tritos, with 1 reply.
Replied to by danpost, about 9 years ago:
Tritos wrote...
Hey, What I want is to set the transparency of the shape I am drawingg next, similar to the <Code Omitted>method. Is there a way to do this? Or atleast a way to get around this?
You will need to zero the alpha of each pixel individually. This can be done by using the 'setColorAt' method within for loops.
Source of download
By Venbha, with 12 replies.
Last reply by Venbha, about 9 years ago:
Venbha wrote...
Thankyou very much I said this in quotes!. and now I know changing all that!
Any good tutorials that show how to implement 2d fov raycasting?
By lava1234567890, with 1 reply.
Replied to by Viki76, about 9 years ago:
wow
Object parameters
By BrownDwarf, with 2 replies.
Last reply by BrownDwarf, about 9 years ago:
Thanks, that worked perfectly!
Time steps in Greenfoot
By daw_germany, with 1 reply.
Replied to by danpost, about 9 years ago:
daw_germany wrote...
the time steps are defined by the speed of execution of Greenfoot
This speed of execution is controlled by the speed slider for the specific scenario. At the normal speed of 50, one time step is somewhere around 1/60th of a second. That is, something between 55 and 60 act steps are executed each second. Please note that using Greenfoot.delay(int) will suspend the entire execution for the given time -- no actors will move; no code will be executed except for an empty loop that repeats itself until the given time has expired.
What's the safest casting?
By tjoepapke, with 4 replies.
Last reply by Venbha, about 9 years ago:
Hello wrote...
<Code Omitted>
Squares, colors, and loops
By IDaivdJr, with 26 replies.
Last reply by danpost, about 9 years ago:
IDaivdJr wrote...
Do you think its more efficient for all squares to flash at the same time or one after another.
Well, there are advantages and drawbacks either way. If all at one, you save time; but, allow pattern recognition to aid the user in clicking the appropriate squares. If seperately, it would be time consuming to flash the squares (especially when flashing each for 5 seconds, which seems like an exagerated amount of time to begin with); but, hides the pattern, making it more difficult to solve (however, limiting to 5 squares favors the user as well). With Simon Sez, each g
how to get around an instantiate object
By divinity, with 2 replies.
Last reply by danpost, about 9 years ago:
I will try to explain a little more clearly. Suppose you have an abstract class, AbstractClass. You cannot do this: <Code Omitted>This is what Hippo was trying to say. However, if you have a subclass of that class: <Code Omitted>then, you can create an object of type AbstractClass by instantiating the NonAbstractClass class: <Code Omitted>In fact, the World and Actor classes of greenfoot are abstract classes; yet, you can create worlds and actors no
Game Over/Reset Screen struggles
By tMsuperhero, with 2 replies.
Last reply by tMsuperhero, about 9 years ago:
oh.. obviously... thanks!
How to add collision to a top down greenfoot game?
By lava1234567890, with 5 replies.
Last reply by danpost, about 9 years ago:
You may want to check out my
scrolling tutorial
to see how it all is accomplished.
[Help] Asteroids scenario won't compile
By TheEnigma, with 2 replies.
Last reply by Venbha, about 9 years ago:
Super_Hippo wrote...
Remove line 2.
Even I will try it.
Terminal Window - Need Help!
By tMsuperhero, with 2 replies.
Last reply by tMsuperhero, about 9 years ago:
Much thanks! :)
Add an object once run key is pressed
By LobsterL, with 1 reply.
Replied to by Super_Hippo, about 9 years ago:
I think the easiest way would be to add the image when creating the world (so it is there before the run key is pressed). It starts with an invisible image, so you can't see it. Then it will itself give an image when it is running and will remove itself after 30 seconds: <Code Omitted>
Help??? please
By Venbha, with 2 replies.
Last reply by Venbha, about 9 years ago:
It works!! see link of it... --->
FIRE AND ICE
<----
330
331
332
333
334
335
336
X