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
how do I put game completed screen after my car eat all the coins in circular track
By hd3377, with 3 replies.
Last reply by hd3377, over 7 years ago:
Super_Hippo it worked finally.Thanks a lot.
MAKE ACTORS MOVE IN THE ORDER I WANT
By gdrgnxxi, with 4 replies.
Last reply by danpost, over 7 years ago:
gdrgnxxi wrote...
all actors move at the same time.
Maybe you should have your world deal with the key presses and inform the "current" ingredient how to respond. This would most probably require that you have a list or array of the ingredients to iterate through as the key presses are detected.
Making a win or lose state.
By Notted, with 21 replies.
Last reply by danpost, over 7 years ago:
Notted wrote...
It works! So the problem was with the way it was spawning in?
Yes. You had the actor spawning in, but the field,
thePlayer
, was not being set to that actor. My first line applies the assignment and my second one adds that (same) actor into the world.
Need help, whenever frog eats fly, score goes up 1
By joeyjin_, with 7 replies.
Last reply by danpost, over 7 years ago:
Nosson1459 wrote...
did you put any code for the fly after it was removed? because the remove must be the last thing you use the fly for
The removal was probably from something executed just prior to this code.
Quick question concerning a for loop
By n1ght5t41xX, with 1 reply.
Replied to by n1ght5t41xX, over 7 years ago:
Solved it myself - I forgot to put a delay into it. Still leaving this here for education purposes haha
I need help making a Boss player automatically fire a laser in a greenfoot game I created called SuperBros
By ak02, with 2 replies.
Last reply by ak02, over 7 years ago:
Thank you.
how do i get the color to be imported to greenfoot color
By Antoine, with 4 replies.
Last reply by Super_Hippo, over 7 years ago:
The Greenfoot package has a Color class (Greenfoot.Color) which you import when importing greenfoot.*. If you import java.awt.Color, you use this Color class instead. The GreenfootImage constructor requires the Greenfoot.Color class. This was changed to make conversions to HTML5 possible for exported scenarios.
Random starting rotation?
By n1ght5t41xX, with 2 replies.
Last reply by n1ght5t41xX, over 7 years ago:
Super_Hippo wrote...
Either use a constructor which is executed once when the object is created: <Code Omitted>Or call the method on the object you created: <Code Omitted>
Thanks a lot!
java.lang.StackOverflowError: what can I do?
By Proprogrammer04, with 1 reply.
Replied to by danpost, over 7 years ago:
Sounds like you have a recursion issue. Cannot help you without seeing what codes you are using. Start with class of 100+ objects; then, class where those objects are being created from (whether from world or from another actor).
pls help with error.
By Night, with 2 replies.
Last reply by Night, over 7 years ago:
thank you :D.
why does this not work
By Philipplol, with 2 replies.
Last reply by Proprogrammer04, over 7 years ago:
It would make things easier if you also use english words for your variables instead of german words
HOW TO CONTINUE MY TIMER IN TO ANOTHER WORLD
By joycepestin, with 6 replies.
Last reply by Nosson1459, over 7 years ago:
also you reference other world classes and other things here please post all the classes and the entirety of them. I did my best based on the info you gave but the code I gave you very likely wont work because there are parts of your code that I cant see
Thanks to Danpost!
By CROCKETTROCKETT4, with 1 reply.
Replied to by MrEaton-CodingGuru, over 7 years ago:
Agreed! Danpost has helped me countless times. This community does not deserve all he does for us and all he teaches. I certainly agree that Danpost is epic. Happy Easter everyone.
Movement Pattern
By Trebushey, with 2 replies.
Last reply by Trebushey, over 7 years ago:
Super_Hippo wrote...
Move line 3 outside of the method. You probably want line 10 in line 15, too.
ohhh I see now, thanks it works now.
Selecting a card that is on the slot
By dkalfpqpfjq, with 35 replies.
Last reply by dkalfpqpfjq, over 7 years ago:
Okay. Thank you for your reply!
195
196
197
198
199
200
201
X