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
Creating new levels in infinite numbers.
By Solringolt, with 2 replies.
Last reply by Solringolt, almost 12 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, almost 12 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, almost 12 years ago:
Error: java.lang.OutOfMemoryError: Java heap space
By lgbrf, with 3 replies.
Last reply by lgbrf, almost 12 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, almost 12 years ago:
"Still doesn't work" - Bob
Falling and jumping problem?
By thekidj, with 7 replies.
Last reply by thekidj, almost 12 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, almost 12 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, almost 12 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, almost 12 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, almost 12 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, almost 12 years ago:
ty, this helped alot
Scrolling Super World Issue
By al_griff, with 10 replies.
Last reply by al_griff, almost 12 years ago:
Of course. I know that in the scrolling world, there is still the section of yours where you claim ownership. I'll make sure to add a comment in the world source too.
help with coding this pls
By gusbus123, with 2 replies.
Last reply by gusbus123, almost 12 years ago:
pls help
Getting atribute of actor by ID
By CplShephard, with 3 replies.
Last reply by CplShephard, almost 12 years ago:
Nevermind, in the line3 of the last code example the "stackPieza" is a list of Pieza, so... so just needed to add ".valueId"
Error message
By infant17, with 2 replies.
Last reply by infant17, almost 12 years ago:
Thank you
850
851
852
853
854
855
856
X