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
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.
What am I missing? moving one at a time...
By alittle_bit, with 1 reply.
Replied to by danpost, over 9 years ago:
One problem is the improper use of 'isKeyDown' which requires a String key value in its parameter. Using 'null' for the parameter makes no sense. If you change that and add a key string to the parameter, then the next thing is the 'while' loop, which will stop everything except the player (if the player can move and the "w" key is down (conditions in the 'movePlayer' method -- otherwise everything will be on hold) until the key is released. I think you are just overcomplicating things by trying to tell the player not to move. It will not move unless you tell it to move -- you do not have t
An actor checking whether another actor exists
By timothytitus, with 4 replies.
Last reply by timothytitus, over 9 years ago:
Okay thanks I'll try
381
382
383
384
385
386
387
X