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
Relative paths/folder structure
By darkmist255, with 4 replies.
Last reply by kiarocks, over 13 years ago:
Actually, it works better like this: <Code Omitted>
how can I create a goal?
By Girl2012, with 2 replies.
Last reply by Girl2012, over 13 years ago:
danke für deine hilfe, aber dass mit dem Ziel verstehe ich gar nicht :( danke trotzdem :)
If Counter =...
By Prudene, with 4 replies.
Last reply by Prudene, over 13 years ago:
Thanks! Thanks a lot! :DD I know this is a bit late, but that really helped me with my project :)
Actors death
By Benedict, with 19 replies.
Last reply by danpost, over 13 years ago:
Put in the Bear class the following methods; <Code Omitted>Then, in your Bear class, in the act() method, put <Code Omitted>
diffrent between greenfoot and blueJ
By Moritz, with 2 replies.
Last reply by Moritz, over 13 years ago:
oooh ok - yes I forgot to change that.. =)
Help please
By Girl2012, with 17 replies.
Last reply by erdelf, over 13 years ago:
import javax.swing.*; vor der Klassendefinition setzen. Das mit dem setzen geht natürlich, geh einfach auf mein profil mein bild mit link dahin ist irgendwo <-- da. Da steht meine E-mail addresse, einfach den projekt ordner mit deinen Wünschen schicken.
Easier way to add objects.
By Zamoht, with 2 replies.
Last reply by Zamoht, over 13 years ago:
Thank you!
mouse click on actor
By gusbus123, with 1 reply.
Replied to by gusbus123, over 13 years ago:
Ok iv got it working if the mouse is over the object but the check for button clicking isnt working this time.
More classes expected
By K_O_P, with 8 replies.
Last reply by K_O_P, over 13 years ago:
Ok, thank you! I'll try this.
remove all objects except one.
By bakkie, with 2 replies.
Last reply by danpost, over 13 years ago:
If you already have a reference to the Actor you do not want removed, called 'saveMe', you could <Code Omitted>
Make instructions like Ninja Survivor V2.0 (paging)
By Andriyanto, with no replies.
hi all.. can teach me make an instructions like Ninja Survivor V2.0 (http://www.greenfoot.org/scenarios/5541)????? or where i can get a source code for make instructions like that? i can't make a paging like that.. please all teach me..
Press object and prevent movement
By meir, with 1 reply.
Replied to by danpost, over 13 years ago:
meir wrote...
Is there any way to prevent an object from being moved (dragged)?
While the simulation is running, an object cannot be dragged, unless you allowed it programatically using 'mousePressed', 'mouseDragged', and 'mouseDragEnded'.
meir wrote...
Is there a way to trigger a function when I drag an object in the world and then drop it (like a blur, and focus)?
'mousePressed' and 'mouseDragEnded' are perfect times to change the image how you please.
null pointed exception error
By wahaj, with 2 replies.
Last reply by wahaj, over 13 years ago:
well thanks. but I kinda figured it out before you answered. and I'm pretty sure I wont be asking anymore questions because my game is almost finished. at this point its just a matter of how fast I can type. thanks for all your help. really appreciate it.
help with the mouse
By wahaj, with 10 replies.
Last reply by wahaj, over 13 years ago:
oh man I'm so stupid. I kept putting all my code in the constructor of the world rather than putting in an act method. my code works fine now thanks for helping
help with shapes and mouse
By wahaj, with 9 replies.
Last reply by danpost, over 13 years ago:
I do not believe that the background image of the world utilizes its transparency value to display the image. But, I do have a way to make it appear to. Create a new class, called 'Tint'. In this new class, create a GreenfootImage of size(1, 1), set the color to 'new Color(255, 255, 255, 100)', fill the image with its new drawing color using 'fill()', and set this image as the image for the 'Tint' actor. Add the following method to the new class:
959
960
961
962
963
964
965
X