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 you create a high score display
By LonelyCreeper, with 4 replies.
Last reply by LonelyCreeper, over 11 years ago:
How do you get the scoreboard to record all the previous scores and display everything at the end?
Adding an object...
By zakariaonlyy, with 4 replies.
Last reply by zakariaonlyy, over 11 years ago:
It worked perfectly, thank you :)
Download issues
By dpatlee, with 13 replies.
Last reply by pck, over 11 years ago:
Game/maniac wrote...
just put the damaged app in the bin and download it again. That normally works for me when I get a damaged file or app
That won't help in that case, as Gatekeeper incorrectly states the app is damaged.
Greeps following paint?
By sask_girlz_rock, with 1 reply.
Replied to by danpost, over 11 years ago:
Uploading and discussing of the Greeps project is discourage on the site as it is used in competitions. Sorry, but you will have to figure this one out on your own.
Greenfoot Error java.lang.IllegalStateException
By Spgoodwin, with 1 reply.
Replied to by davmac, over 11 years ago:
The error pretty message pretty much explains the problem:
An attempt was made to use the actor's location while it is not in the world. Either it has not yet been inserted, or it has been removed.
Most likely, you've got some code which removes 'this' actor from the world, but then goes on and does something else which requires the actor's location.
Counting multiples in scoreboard
By kaciedy, with 13 replies.
Last reply by bonana, over 11 years ago:
still the font style to change... And I've got another problem with my own scoreboard. The scoreboard gets activated by actor z, whose score is not counted. The scoreboard should display the score of actor a, actor b and actor c. I tried to use a public static int scoreA / scoreB / scoreC in the classes of these actors and "actor a" + scoreA / "actor b" + scoreB / "actor c" + scoreC as a string in the scoreboard class, but it always shows a score of 0. Does anyone know how to fix it? (I'm sure you do ;-) )
testing for actors
By bonana, with 2 replies.
Last reply by bonana, over 11 years ago:
Thank you for your quick answer! It works :-)
Ice Hockey Game Questions
By camsterb, with 3 replies.
Last reply by camsterb, over 11 years ago:
Hey, again. I have posted another two discussions with questions about collisions if you can help. Thanks. http://www.greenfoot.org/topics/find/17806#post_17806 http://www.greenfoot.org/topics/2775
How to make the ground keep scrolling?
By AnneMacaroni, with no replies.
I don't want to make a scrolling background b/c it's too confusing so I decided to make a scrolling ground, which is an object, to make it look like my actor is moving. How would I make it so that the ground (Ground.class) could keep remaking itself? However I want it so that there are gaps in between so the actor can jump over the gap. Please help. I tried many ways but it lags a lot b/c I used counters and the counter eventually got to big (greater than 2000....) <Code Omitted> I then called it in the world's act() method so that this would keep repeating itself. Anyway to make it better? or provide a scenario that has a scrolling object (ground)
How to make one actor to move with another actor?
By tuzi, with no replies.
hi, im doing this mario type of game and i got a problem i have this bar that is moving back and forth on the screen how am i able to make mario to move with the bar once it lands on it?
worlds using methods from other worlds
By bonana, with 8 replies.
Last reply by bonana, over 11 years ago:
Ahh okay, understood. Thank you
Move in the direction of a mouse click?
By solokeh, with 7 replies.
Last reply by danpost, over 11 years ago:
@Hawx_, the 'turnTowards' method is in the Actor API and needs an Actor object to run on. If this line of code is in the Ball class 'act' method (or a method that the 'act' method calls), just use: <Code Omitted>
Constructor Errors
By Gingervitis, with 15 replies.
Last reply by Gingervitis, over 11 years ago:
Ok. Thank you. It worked.
How do you make obstacles?
By LonelyCreeper, with 11 replies.
Last reply by LonelyCreeper, over 11 years ago:
so do i just put the code in the move() method?
timer
By milanapa, with 6 replies.
Last reply by danpost, over 11 years ago:
@milanapa, it would make sense to put the code in the class that creates the object that you are timing (if you are timing how long a world is active, put it in the class of that world; if you are timing how long an actor is 'alive', put it in the class of that actor). That way, as you add additional code, there will be less chance of having to modify this part.
886
887
888
889
890
891
892
X