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
Where is greenfoot
By leopoldo.finol@gmail.com, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
Did you search for "Greenfoot" in your Computer. For me, it is in C-Programs(x86)-Greenfoot
Comparing images never returns True
By zomoruk, with 2 replies.
Last reply by davmac, over 9 years ago:
When you use "==" you are checking if two things refer to the same object, not to two objects that are the same. Because you have just set the image (line 28) to a
new
image object, there is no way that this can now be the same image object as the pre-existing 'img'. You
could
compare the images using the .equals(...) method, something like: <Code Omitted> And this
might
work as you want, but it also might not: exactly how GreenfootImage compares for image equality is not formally specified. Even if it do
I need my subclass of Actor(my character) to gain a boost in speed
By Katsura, with 4 replies.
Last reply by Scarlett, over 9 years ago:
Hi I know what to do
STOP SIGN
By rachpaguia@gmail.com, with 1 reply.
Replied to by danpost, over 9 years ago:
rachpaguia@gmail.com wrote...
Hi, there's like a stop sign at the left side of my code. Does anyone know what it means and how to get rid of it?
Just click on it to remove it. It is a break-point indicator. If you run the code with the sign there, the program will stop in the middle of execution at that line of code (it is a debugging feature).
HOW TO ADD ACTORS EVERY 3 SECONDS
By fxrrxr, with 10 replies.
Last reply by rachpaguia@gmail.com, over 9 years ago:
OH MINE AS WELL! Thank you!
Scoreboard
By Okiele1, with 1 reply.
Replied to by danpost, over 9 years ago:
Well, when you brought this up in the other discussion thread, I had a feeling you would need to create your own anyway. You will need to have knowledge both in the use of the UserInfo class (for accessing the data) and of the GreenfootImage class (for creating the scoreboard). Their API class documentations will be your go-to pages (your friends). Start by creating a subclass of Actor that will create a ScoreBoard object. Add to your existing game over code a check to see if UserInfo is available and, if so, create a ScoreBoard object. Test both cases of user logged in and not logged in
enter
By fxrrxr, with 1 reply.
Replied to by danpost, over 9 years ago:
fxrrxr wrote...
how can i make an actor fall the moment enter is pressed? im trying to make a game. this particular actor will disappear once a letter is pressed but will also reappear again after every 4 seconds. how can i apply the enter code without disturbing my previous code about spawning actors
I am not sure I quite get it. How does pressing enter to make the already spawned actors fall disturb the spawning of actors?
ADDING ACTORS
By rachpaguia@gmail.com, with 11 replies.
Last reply by rachpaguia@gmail.com, over 9 years ago:
i suck at this i'm sorry, thank you so much. i'm sorry for giving you a headache
how to end a game when an actor reaches the bottom of the background?
By fxrrxr, with 4 replies.
Last reply by fxrrxr, over 9 years ago:
THANK YOU SO MUCH
Greenfoot launches but won't run.
By Katsura, with 2 replies.
Last reply by Katsura, over 9 years ago:
Hi davmac Thank you for your prompt reply, sorry that I only got back to you now. Basically the greenfoot loading screen would open but it wouldn't progress from there. I resolved my issue by going to a friend that day and extracting his zipped folder onto my flash and now I just run greenfoot on my flash. Again thank you! Kind regards Katsura
Geography quiz
By adlafforest, with 6 replies.
Last reply by danpost, over 9 years ago:
A couple of suggestions: (1) add the answers to the list and shuffle them before adding the picture to it; (2) you need the picture of Finland added to the second answer set.
Making enemies appear at random places while playing
By Okiele1, with 13 replies.
Last reply by danpost, over 9 years ago:
Okiele1 wrote...
Should i create a new thread for this, or is it all right that i ask it here?
That would be best -- so that the title of the thread fits what is in it.
how to create a scoreboard
By fxrrxr, with 1 reply.
Replied to by danpost, over 9 years ago:
My
Value Display Tutorial
explains how to accomplish this kind of thing.
APPEARING OBJECT
By rachpaguia@gmail.com, with 29 replies.
Last reply by danpost, over 9 years ago:
rachpaguia@gmail.com wrote...
Last, sorry, What do spawning objects mean?
To spawn an object is basically the same as to add one into a world.
WHEN OBJECTS FALLS ON THE GROUND HOW CAN I DO AND " END/GAME OVER" ?
By irmina_pablico, with 1 reply.
Replied to by danpost, over 9 years ago:
A falling actor reaches the ground when its y-coordinate value becomes one less than the height of the world it resides in. So, that is what you check for in the act method of the class of the actor: <Code Omitted>Whether you add an actor and stop the scenario or change the world to show the end game state is up to you. Place the code where indicated.
381
382
383
384
385
386
387
X