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
High Score
By pr2alede, with no replies.
Any ideas how I can display players score in a new world when the game ends? e.g Your score is 456.
Multiple Worlds
By alagon, with 9 replies.
Last reply by danpost, over 10 years ago:
If you create and start the background music in your subclass of World, then you need to use a reference to that instance of GreenfootSound; not create a new one.
Candy smasher: quadratics
By RJ13579, with 4 replies.
Last reply by RJ13579, over 10 years ago:
Here is the hammer code : public void act() { checkMouse(); } public void checkMouse() { MouseInfo mouse = Greenfoot.getMouseInfo(); if(mouse!=null){ int button = mouse.getButton(); if(button == 1) { int mouseX=mouse.getX(); int mouseY=mouse.getY(); setLocation(mouseX, mouseY); } } }
Frogger: Teleporting
By quakster1, with 2 replies.
Last reply by quakster1, over 10 years ago:
ok thanks
Upload a scenario
By Yogibaer, with no replies.
solved
.dll via JNA
By Yogibaer, with no replies.
My aim is, to control a Multi-IO-board produced by Velleman (Belgium) with Greenfoot-based software. My hope is based on the scenario "sensboard test" published in documention. Status of development: my code shows no syntax errors. BUT: the world (Panel) does not start. It starts if I switch off all lines concerning JNA or native loader. If I switch on
only
the static method "native loader" in World "Panel" it doesn`t start. If I switch on
only
the K8055D instance called "bord" it starts but the test run says: <Code Omitted>. The scenario is published under "GF KD8055" post number "10101". The critical lines are put to comments, to see anything. Put them active to face the problem. I hope somebody can help.... greetings and already thanks of Yogibaer
Going through an object on the side while it shouldn't
By Foppen, with 20 replies.
Last reply by Foppen, over 10 years ago:
Already found a solution myself. Thanks for your help anyway.
Connecting Rooms Request
By askgriff, with 3 replies.
Last reply by danpost, over 10 years ago:
I did upload one more room changing scenario. The rooms are created anew each time the character enters them. It has a simple 'start-up' world that is basically used to hold the main character. It can be made to hold other actors or stats; or, they can be held within the main character. Anyway, the world changing code is within each world (which is more what you were looking for). You can find this scenario
here
. To use actor objects as portals to the different worlds would require each world to keep references to each portal object a
How to read and compare a specific pixel in an img?
By frederikam, with 2 replies.
Last reply by frederikam, over 10 years ago:
Okay thanks for leading me in the right direction.
Creating Images
By David.Budnick, with 2 replies.
Last reply by David.Budnick, over 10 years ago:
Thank you so much you saved my life!!!
Game Design One(BVW)
By csr1010, with 4 replies.
Last reply by csr1010, over 10 years ago:
IMPROVED BULLET CODE
simple zombie game
By jubyfollower, with 2 replies.
Last reply by jubyfollower, over 10 years ago:
thanks! :D
How to randomly assign specific numbers to random objects?
By lonesoldierx7, with 1 reply.
Replied to by bourne, over 10 years ago:
Something like this where Object is whatever type of objects getting assigned values: Assuming there are equal or greater number of specific numbers than objects to be assigned to, and that you are wishing to assign 1 to 1. <Code Omitted> OR if you want to assign an array of values without regard to repetition among the objects, then something like this:
Bullets start in the middle of thw world instead of where the actor is.
By ewc0707, with 3 replies.
Last reply by danpost, over 10 years ago:
Replace 'getWorld()' in the 'addObject' line with 'sworld'.
Explosions aren't showing up where they should!
By ewc0707, with 9 replies.
Last reply by ewc0707, over 10 years ago:
Ok thank you very much.
755
756
757
758
759
760
761
X