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
hitboxes are very inaccurate to the real hitbox of the bullet
By cq1um, with 2 replies.
Last reply by danpost, about 5 years ago:
cq1um wrote...
the image of the bullet is transparent, yes i have tested the hitboxes https://www.greenfoot.org/scenarios/9908 < here, and the hitbox seems fine to me on the car (that is being shot at) aswell as the bullet.
Do not link someone else's scenario for a problem in one of yours. Provide
your
code (
Bullet
and
Car
classes).
New to Greenfoot... How to make object not protrude world edge.
By Pijmzhchus57, with 3 replies.
Last reply by Pijmzhchus57, about 5 years ago:
danpost wrote...
Pijmzhchus57 wrote...
I would like to make my actor not protrude world edge. It kinda goes halfway and then it blocks the move input.
The actor's image is centered at its location. Use actor's location and the width of its image to adjust location of actor when too close to an edge (after a move).
OK. I somehow figured it out! Thanks, your reply helped me get to the bottom of it ;)
How to save a project as a greenfoot file
By KeLLox, with 1 reply.
Replied to by danpost, about 5 years ago:
KeLLox wrote...
How do I save a Greenfoot projekt as a Greenfoot file(so you can open it directly not as a Folder)?
Just share it as an application. It will be saved as an
Executable Jar File
(where
"Open
" runs the program outside the greenfoot application).
I need to display Hint type text
By XApple15, with 12 replies.
Last reply by danpost, about 5 years ago:
XApple15 wrote...
If the actor where the boolean IsDeleted is named Cut , so the reference to the boolean whould be : Cut IsDeleted ? ( ex : if ( Cut IsDeleted == true ) { ....} ) ?
Well, if
Cut
is the name of the class that creates the actor with the
boolean
, then
Cut
is not necessarily, and probably should not be the name of the reference (to avoid confusion). Example: <Code Omitted>With this line,
cutActor
is the name of the reference to the actor. <Code Omitted>Here,
Randomly Generating Actors
By JustAnArchosaur, with 5 replies.
Last reply by JustAnArchosaur, about 5 years ago:
Thank you for your help :)
Scenario not working in web site
By Roshan123, with 44 replies.
Last reply by danpost, about 5 years ago:
Roshan123 wrote...
i would like to challenge u that u can do most of the things in website except counting the total number of thanks greetings given by users
The total count is not important. I am aware that it is quite large, however. Challenge declined.
hello, I need help with my breakout project. It always shows that its an incomplete ending.
By emmv.h, with 6 replies.
Last reply by emmv.h, about 5 years ago:
ok thanks
I get an weird error
By XApple15, with 1 reply.
Replied to by danpost, about 5 years ago:
XApple15 wrote...
I rebuit the code for this actor , but after i keep pressing the C button on my keyboard and i lift it at a random moment , i get an weird error << Code Omitted >> I think this error has to deal something with the fact that the compiler cannot find the Actor, but the actor is there
It is not the actor, but the world that it cannot find. Once the actor is removed from the world (line 31), the
getWorld
method will return a
null
value. Change lines 31 and 40 to: <Code Omitted>to abort the method when the actor
background music
By ekosanji, with 7 replies.
Last reply by danpost, about 5 years ago:
ekosanji wrote...
This way??? << Code Omitted >>
Did that change anything?
How to rotate an actor away from another actor??
By Har8mes, with 13 replies.
Last reply by Har8mes, over 5 years ago:
Now It's working as it was planned!!! Thank you guys for your help!!!!
getIntersectingObjects() Question
By SwaggyXiao, with 2 replies.
Last reply by SwaggyXiao, over 5 years ago:
danpost wrote...
SwaggyXiao wrote...
Hi, I have a question like this I use getIntersectingObjects(Objects.class) to put all Objects into a List. How does the order of the list work? Like if I do get(0) how does it know which is first?
It is probable that they will appear in the list in the same order as they were added into the world.
OHHH I will try it! THANK YOU!
how to display background.gif in greenfoot?
By ekosanji, with 11 replies.
Last reply by ekosanji, over 5 years ago:
okay thank you, for helping me Even though I'm still a beginner doing it, I learned to make this game because I wanted to know how difficult it was to make a game. it turns out hard too huh?
Hi I have designed a game where if I fire a missile it should go down and launch.can anyone help me
By Kittu, with 3 replies.
Last reply by danpost, over 5 years ago:
Kittu wrote...
I mean if I launch a missile the missile should be launched from one step down of ship and go in a straight line
To
"go in a straight line"
is simple. However,
"one step down of ship"
-- again, not very clear. Explain what this means in detail.
Font Error
By jacquelinereilly, with 4 replies.
Last reply by jacquelinereilly, over 5 years ago:
Awesome!!! Thank you so much
getMicLevel not working???
By acidgranola, with 1 reply.
Replied to by danpost, over 5 years ago:
acidgranola wrote...
the getMicLevel method does not work. ... I don't know what I am doing wrong. I'm using Windows 10 and version 3.6.1. << Code Omitted >>
There is nothing wrong with the code (tested and works fine -- Windows 7 version 3.1.0). Maybe I should test with an external mic, as well.
92
93
94
95
96
97
98
X