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
Menu question
By BradH, with 1 reply.
Replied to by erdelf, over 11 years ago:
To make a menu look at this scenario: http://www.greenfoot.org/scenarios/5679 For the world transition use this command: <Code Omitted>
Need help on setting bold text.
By Jrm1715, with 11 replies.
Last reply by Jrm1715, over 11 years ago:
Thank you. Makes a lot more sense to just use the actor object. Appreciate the help!
Scroll world problem
By treinentom, with 33 replies.
Last reply by SPower, over 11 years ago:
Ik heb door uw code gelezen, en ik denk dat de move statements in de of statements niet nodig zijn. Misschien ziet dat er wat beter uit. En u zei dat de platforms niet met de camera meebewegen als de camera beweegt, dat is logisch als je het object toevoegt mrt de normale addObject methode. Als u wilt dat ze samen met de camera bewegen, gebruik dan de addCameraFollower methode. Onthoud wel dat de gegeven argumenten daar gezien zijn vanaf de camera, dus 0,0 zal in het midden van het scherm komen.
Jump Problems
By StaetheWolfe, with 5 replies.
Last reply by StaetheWolfe, over 11 years ago:
onGroud() returns true when the it looks like it is touching the ground. It also returns true when it is a lot higher than the ground. If I place the actor where onGround() returns false, it falls to where it recognizes ground (not where the image of ground is) and when the up arrow key is pressed, proceeds to do nothing. Changing ySpeed=1 does the same thing.
PONGER
By DOGGY, with 11 replies.
Last reply by SPower, over 11 years ago:
For all the english people, I'm explaining what went wrong :) Eerst ff uitleggen: Je kan een object met een bepaalde naam maar 1 keer maken, je moet de volgende dus een andere naam geven. Als voorbeeld: <Code Omitted>op deze manier wordt het batje genaamd bat2 aan de rechterkant toegevoegd, 30 pixels van de rand (je denkt zeker, waarom zeg je dan '-31'??!! nou, dat komt omdat de coordinaten vanaf 0 beginnen te tellen, dus helemaal a
How to drag a world?
By roronoa, with 7 replies.
Last reply by danpost, over 11 years ago:
I came up with this code to drag an oversized image on the world background.
for loop problems
By erdelf, with 6 replies.
Last reply by erdelf, over 11 years ago:
yeah, when I didn't used the for loop for a while, I forget the most parts.
Breakout code, very confusing? care to explain
By hamchi, with 3 replies.
Last reply by danpost, over 11 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 11 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 11 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 11 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 11 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 11 years ago:
Its out early!
Need help with working across classes
By iWin4Poland, with 5 replies.
Last reply by danpost, over 11 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 11 years ago:
XD you are welcome
918
919
920
921
922
923
924
X