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
Greenfoot out of memory error
By Acituanbus, with 2 replies.
Last reply by Agent40, over 8 years ago:
Sadly Greenfoot as an engine can't handle files that size, so you'll just have to split up the image and work from there. No scrolling credits for you.
How to check if Actor still exists
By skottc, with 3 replies.
Last reply by Vercility, over 8 years ago:
'this' will always return a reference to whatever called it so it cant be null. include the atEdge check in your collision method as an if-else branch
making a method in my crab class, that permits setting of the number of worms in my world.
By Miguel.Valdez, with 13 replies.
Last reply by danpost, over 8 years ago:
Miguel.Valdez wrote...
so move all this <Code Omitted>to my Crab class? then how would <Code Omitted> this just is making sense in how i should write it, there NO way it can be this difficult to make a dumb crab set the number of worms. be able to get the amount of worms to populate?
I know, it is not eff
show score in my world
By Miguel.Valdez, with 3 replies.
Last reply by danpost, over 8 years ago:
Miguel.Valdez wrote...
so now i have this in my world << Code Omitted >> but how exactly can i make it display in a certatin area in my world?
Create an actor, assign it to
scoreDisplay
and add it into the world (all in your world constructor).
Gravity
By student1, with 15 replies.
Last reply by danpost, over 8 years ago:
student1 wrote...
when i tried what you suggested it said that the method could not be found but the way i did it does not come up with any errors it just does not acknowledge platform
The method is probably found, but you do not yet have code to react to when it returns true. Add an else block after line 14 to deal with landing/standing on a platform.
Chapter 9 Asteroids Using java.util.List
By pleasehelp2018, with 3 replies.
Last reply by danpost, over 8 years ago:
pleasehelp2018 wrote...
learn how to use list and getObjectsInRange but no work << Code Omitted >>
I do not see how that is going to help for the current exercise. Explain your intentions with using a list here. Also, explain why you think getting the asteroids within some proximity of another actor is going to help.
I need to remove an object
By erchainis, with 4 replies.
Last reply by danpost, over 8 years ago:
How does your code even compile? Line 22 should fail as
iif
is not a keyword. Also, where is
bumpCount
does not appear to be declared as a variable. You wrote that you tried to compare colors and maybe initializing was a problem. Where is the codes for all that? as well as for giving characteristic to the bubble.
getObjects functions
By Lavenger, with 8 replies.
Last reply by danpost, over 8 years ago:
Lavenger wrote...
what do I do if I want to clear the world of actors? (clear the world when the game ends)
Use
getObjects
with
removeObjects
.
Greenfoot switches tabs on its own when I press ALTgr
By Acituanbus, with 4 replies.
Last reply by Acituanbus, over 8 years ago:
I figured out that you have to close some tabs and it'll work again... Still annoying though.
Problem with static/non-static methods
By 101929ha, with 8 replies.
Last reply by nolttr21, over 8 years ago:
please post it so we know how it turned out.
''Simon Game'' - How can I make it, so the ''AI'' lets buttons light up?
By JFox, with 26 replies.
Last reply by JFox, over 8 years ago:
Ok, thanks for helping! It worked :)
Movement angles
By danteinferno, with 1 reply.
Replied to by Miguel.Valdez, over 8 years ago:
in what direction do you want it to move? or how do u want it to move?
When actor reached score 10, he can go to the next level
By Findr, with 2 replies.
Last reply by danpost, over 8 years ago:
nolttr21 wrote...
assuming that the next level is in another world, put this in your act method of your counter <Code Omitted>
The act method of the
Counter
class is not really an appropriate place for that check. If in the
Counter
class at all, it should be at the end of the
addScore
method. I feel, however, that it should be modified to go either in the
stretSKytkou
method in the class of the player or in a method in your
Louka
class that is called from the
Bubbles
By danteinferno, with 10 replies.
Last reply by danpost, over 8 years ago:
danteinferno wrote...
Now I have this. It compiles but does not run << Code Omitted >>
"incrementor = incrementor" (line 3) does not change its value. I was about to post the following when I noticed your last post:
danteinferno wrote...
<< Code Omitted >> I currently have this but some of the bubbles are on top of each other
That is because you are placing them randomly along the horizontal. You added a spacing variable; but, its value is (1) not used; and (2) not large enough. To evenly space the bubbles, you would divide the world into nineteen vertical strips and plac
make simple game
By Helmy_Isrofi, with no replies.
guys, can i ask to you guys?? can help me make simple game?? you can gift me syntax code simple game or teach me to make a game?? please.. i am still beginner in here
273
274
275
276
277
278
279
X