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
Write an int with a specified font
By Solringolt, with 2 replies.
Last reply by Solringolt, about 13 years ago:
Ok I kinda solved my problem using the counter class imported thx
How can I make objects move diagonally in Greenfoot?
By QWERTY894, with 5 replies.
Last reply by danpost, about 13 years ago:
You need to set values for 'direction' and 'speed' in the constructor for this object.
Class Sorting
By GregC246, with 8 replies.
Last reply by GregC246, about 13 years ago:
Thanks :)
For danpost
By Game/maniac, with 5 replies.
Last reply by danpost, about 13 years ago:
The image with the blue frame on the help screen is rendered with a size of (556, 580) on my system (I do not know why it would be different for anyone else). I did change the draw location for the actor images from an absolute offset from left of the frame image to an absolute offset from the center of the frame image (hope that helped).
Creating new levels in infinite numbers.
By Solringolt, with 2 replies.
Last reply by Solringolt, about 13 years ago:
Thx for the tips! I added also the checkForNextLevel() in the act method to make it more easy. It looks like that now:
How do you gradually increase image size?
By QWERTY894, with 5 replies.
Last reply by danpost, about 13 years ago:
You will probably find that the image will distort as it grows in size. This is because you are scaling the image multiple times. To avoid this, scale the original image each time. <Code Omitted>I added one to the y-location to prevent error creating an image of zero size. If you feel that the image is too large by the time it reaches the bottom of the screen, you can modify the code by using a ratio. In the above the ratio is one, which makes it full height of screen at the bottom.
Taking any help I can get...
By jennnnay24, with 2 replies.
Last reply by jennnnay24, about 13 years ago:
Error: java.lang.OutOfMemoryError: Java heap space
By lgbrf, with 3 replies.
Last reply by lgbrf, about 13 years ago:
Opening and closing it fixed it... i feel pretty silly for not trying that. Thanks guys :D
Could someone help me?
By bob10123, with 5 replies.
Last reply by OxiClean, about 13 years ago:
"Still doesn't work" - Bob
Falling and jumping problem?
By thekidj, with 7 replies.
Last reply by thekidj, about 13 years ago:
So I'd have if the following <Code Omitted>I'm not sure what I'd put in for X
Would someone be so kind?
By jennnnay24, with 2 replies.
Last reply by jennnnay24, about 13 years ago:
The problem with 1 is that another requirement is that the crab's initial worms eaten have to be between 5 and 27
Shapes
By Gingervitis, with 4 replies.
Last reply by Gevater_Tod4711, about 13 years ago:
Hmm... a realy strange link. Probably because of the brekets.
how do you control Clara the ladybug to move, turn right, turn left, turn around by clicking on arrow keys?
By gquach, with 2 replies.
Last reply by danpost, about 13 years ago:
@Gevater_Tod4711, I believe that Clara is in a GridWorld layout where only 'up', 'right', 'down' and 'left' are valid directions; so 'turn(int)' is not something that will be used. @gquach, you will probably need a timer field to regulate the movement (so Clara does not just 'jump' to the edge of the world). Use a value somewhere between 15 and 40 (whatever seems natural when running the scenario). If the timer has elapsed and only one of the four keys are pressed, turn and move in that direction. These conditions will need checked for each valid directional keypress.
Best way to send variable information between actors?
By Entity1037, with 5 replies.
Last reply by Entity1037, about 13 years ago:
I feel stupid. I quoted the wrong person. X\ Whatever.
using sprites to draw strings
By gusbus123, with 4 replies.
Last reply by gusbus123, about 13 years ago:
ty, this helped alot
854
855
856
857
858
859
860
X