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
Breakout code, very confusing? care to explain
By hamchi, with 3 replies.
Last reply by danpost, over 13 years ago:
The code says the same thing as the following <Code Omitted>which might make more sense. If the objects are closer along the x-axis than half the width of the object (which should be the width of the block or paddle -- not the width of the ball) then the ball must be hitting the top or bottom face of the block or paddle and so the y-direction must reverse; otherwise, the x-direction must be reversing. It would seem, however, that corner bouncing would not simulate natural behavi
How to change the cursor image?
By roronoa, with 1 reply.
Replied to by Gevater_Tod4711, over 13 years ago:
In
this scenario
by Busch2207 the mouse disappears (like the name already says), because the mouseImage changes to a transparent image. If you use another image the mouse will look like this. You could also look at the world class of
this
game. There I used an image.
Ending game when eaten
By Penguins_and_Orbs, with 23 replies.
Last reply by davmac, over 13 years ago:
If you actually do have a 'canSee' method, you can write: if (! canSee(Penguin.class) && ! canSee(Bee.class)) { The '!' means 'not'.
Looping through a string
By mickyg, with 4 replies.
Last reply by mickyg, over 13 years ago:
Thanks again! It's very much appreciated as I have spent a fair bit of time trying to figure this out.
@nooby123 Some suggestions
By Upupzealot, with 4 replies.
Last reply by nooby123, over 13 years ago:
Wow thanks! That looks actually pretty cool!
Demon time coming soon!
By Game/maniac, with 5 replies.
Last reply by Game/maniac, over 13 years ago:
Its out early!
Need help with working across classes
By iWin4Poland, with 5 replies.
Last reply by danpost, over 13 years ago:
You can find the methods you can use on String objects
here
.
Crab scenario question
By mncomic, with 5 replies.
Last reply by Upupzealot, over 13 years ago:
XD you are welcome
Help with Object Interaction
By PoleBro764, with 8 replies.
Last reply by Upupzealot, over 13 years ago:
XD
need help with String.replace()
By Gevater_Tod4711, with 4 replies.
Last reply by SPower, over 13 years ago:
O, I always click on the old API :(, I'll keep that in mind next time ;)
Help with delay on backgroundmusic
By Tezuka, with 12 replies.
Last reply by danpost, over 13 years ago:
You just need to call this method from the act method without condition <Code Omitted>
is it possible to insert web page?
By won0c, with 9 replies.
Last reply by Upupzealot, over 13 years ago:
Yes, and davmac saw that also, he said the way I'm using maybe unsafe... Now I was worrying about whether I have caused some trouble here
Display on External Monitor ?
By mattdodo, with 3 replies.
Last reply by SPower, over 13 years ago:
Maybe this helps getting the scenario full screen:
http://www.greenfoot.org/topics/find/12042#post_12042
Greenfoot Create Scenario Issue
By AgentGinger149, with 15 replies.
Last reply by davmac, over 13 years ago:
You must supply a name for the scenario before you click create/save in the dialog. The "new scenario" function works perfectly well if you do supply a name.
Help
By Stephon231, with 1 reply.
Replied to by danpost, over 13 years ago:
You cannot execute a non-static method without an object of that type (or, you cannot execute a non-static method with a class name). You need to get a reference of an object of that class and execute the method on that object. I am hoping you only have one Ship object in the world for the following code: <Code Omitted>Again, you must have one, and only one, ship in the world for this code. Otherwise, you need the following check: if (getWorld().getObjects(Ship.class).isEmpty()) Do not use the previous code
930
931
932
933
934
935
936
X