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
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, about 11 years ago:
Already found a solution myself. Thanks for your help anyway.
Connecting Rooms Request
By askgriff, with 3 replies.
Last reply by danpost, about 11 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, about 11 years ago:
Okay thanks for leading me in the right direction.
Creating Images
By David.Budnick, with 2 replies.
Last reply by David.Budnick, about 11 years ago:
Thank you so much you saved my life!!!
Game Design One(BVW)
By csr1010, with 4 replies.
Last reply by csr1010, about 11 years ago:
IMPROVED BULLET CODE
simple zombie game
By jubyfollower, with 2 replies.
Last reply by jubyfollower, about 11 years ago:
thanks! :D
How to randomly assign specific numbers to random objects?
By lonesoldierx7, with 1 reply.
Replied to by bourne, about 11 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, about 11 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, about 11 years ago:
Ok thank you very much.
How to sporn random
By Asoraso, with 32 replies.
Last reply by Asoraso, about 11 years ago:
Thank you realy much ! And Gevater_Tod4711 too.
Breakout help (I would appreciate it :) )
By OhSoFoxy, with no replies.
Okay, so a while ago I posted asking for a code for infinite loop. So how do I alter that code so that every time it resets, the ball is smaller? Here's my code: Board: <Code Omitted> Ball: <Code Omitted> Paddle <Code Omitted> BonusBlock <Code Omitted> and the regular Block: <Code Omitted>
Rmoving Objects
By Lime25Sour, with 2 replies.
Last reply by danpost, about 11 years ago:
Look at the 'eat' method of the Animal class.
Moving object to opposite of world when it reaches one side
By bzhang, with 3 replies.
Last reply by danpost, about 11 years ago:
You do not want to use the current location of the object (by using 'getY') to limit the random number generation. If 'getY' returns '0' then this error will occur as no valid return value would be legal (zero is not positive). You should instead use the height of the world by using 'getHeight' (rather 'getWorld().getHeight()', since the code is in an actor class).
760
761
762
763
764
765
766
X