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
Open the webbrowser
By sjoerdieman, with 2 replies.
Last reply by sjoerdieman, over 10 years ago:
Thanks got it!
How to zoom in when in source code view?
By classicjimmy, with 1 reply.
Replied to by danpost, over 10 years ago:
While in the editor, select 'Options>Preferences...' from the menubar; in the 'Editor' tab, change the font size to 14 or so and click the 'Ok' button. From outside the editor, you can get to the 'Preferences' dialog box by 'Ctrl-,' (control-comma).
Solid Objects
By DemonsWhiteSoul, with 4 replies.
Last reply by danpost, over 10 years ago:
DemonsWhiteSoul wrote...
How would i make it walk back? do i set Rotation ?
How does setting the rotation of the image that actor has change that actors location? There are only two Actor class methods that change the position of an actor. Please review the Actor class documentation (the methods available and what they do, in particular).
Multiple image movement
By Mrinal, with 6 replies.
Last reply by danpost, over 10 years ago:
If you were to code it in the Ladybug class, you would need a field to distinguish one from the other as far as which direction they will move. An int type field would be easiest in this case. One instance can have a value of '1' while the other has a value of '-1'. Then multiply both value parameters in the 'setLocation' statement by the field.
Offset Movement
By Mrinal, with 7 replies.
Last reply by Mrinal, over 10 years ago:
Made a little change in code and put it in. Works... Thanks a lot! :)
I'm making Brick Breaker/breakout and my ball is only coliding with the top of the bricks
By TTTT, with 3 replies.
Last reply by Super_Hippo, over 10 years ago:
You could just add an 'else' before the 'if' or do it like this: <Code Omitted> Or: <Code Omitted>
Help!?
By Greenfooter1212, with 4 replies.
Last reply by Greenfooter1212, over 10 years ago:
How would I put that in?
getOneObjectAtOffset....
By DemonsWhiteSoul, with 4 replies.
Last reply by DemonsWhiteSoul, over 10 years ago:
Thanks, you been soooo much help xD
Checks
By Kryptonous, with 43 replies.
Last reply by Kryptonous, over 10 years ago:
Still figuring out the turns, but I think that'll work out, eventually. Thanks danpost and Super_Hippo, you really helped me out a lot! I still have to learn so much, though!
Many, many thanks!
How to filter out the "Enter" character form a txt read?
By EnderPicture, with 1 reply.
Replied to by Super_Hippo, over 10 years ago:
Could you post the relevant code how you read the file? Maybe we can find the reason then. (Use code tags please.)
Setting movement of an object
By ryancumpsty, with 1 reply.
Replied to by danpost, over 10 years ago:
Please refer to
this page
of the java tutorials.
Movement!
By gamer98, with 4 replies.
Last reply by -nic-, over 10 years ago:
Yeah I know but I copied it from a test scenario and it threw an error otherwise forgot to get rid off it. Thanks Super_Hippo
Wombat Scenarion help !!!
By KOSIUS, with 1 reply.
Replied to by danpost, over 10 years ago:
Although the wombat is not an enemy,
this
still might help. It is the same type of movement.
How to check actor compatibility?
By Stoeptegel, with 1 reply.
Replied to by danpost, over 10 years ago:
Line 5 uses 'getOneObjectAtOffset'. The documentation shows that it returns an object of type Actor (regardless of what class of object you are looking for). To access anything in the Container class with the field 'containerPicked', you need to let it be known that the field holds a Container type object. <Code Omitted>This line takes the actor (containerPicked) and casts it as a Container type object and then sets the new variable 'cp', which is declared to hold a Container object, to that actor.
Constructor booleans do not work properly.
By Stoeptegel, with 2 replies.
Last reply by Stoeptegel, over 10 years ago:
Ah! I almost forgot about switch cases *shame*. Thanks mate! Much improvement :)
605
606
607
608
609
610
611
X