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
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
UIManager in NetBeans
By Nosson1459, with 5 replies.
Last reply by Nosson1459, over 9 years ago:
Super_Hippo wrote...
getting a not useful one is probably not helping you either
I agree. I didn't ask for a not useful answer (I'm NOT saying that that's exactly what you gave me).
Maybe you have to contact the NetBeans support, but I don't know.
Maybe, but I was asking here in case there was something I was doing wrong (the code is in a class which extends World, so it does have a little bit to do with Greenfoot but that method doesn't have anything to do with Greenfoot alone).
Background Processes
By Nosson1459, with 3 replies.
Last reply by Nosson1459, over 9 years ago:
It seems to me that there hasn't been anyone on the Greenfoot site in the past 12 days that knows how to create a background process in Windows from Greenfoot (or anywhere just the point is in Java). I shouldn't really expect any replies because I don't think it makes sense for someone to reply saying that they don't know, and no one replied so that must mean that simply no one knows.
Little Shooter - the weapon not like a ball
By wueschn, with 7 replies.
Last reply by Nosson1459, over 9 years ago:
danpost wrote...
It was you -- and you asked about the release of a key
here.
i need help cant find working code for background music
By ninjaFI, with 1 reply.
Replied to by Nosson1459, over 9 years ago:
The following code will do the same thing as your (CopyOf)World1 code just it will also play a sound file called "maskoff.mp3" (I changed all the class names to start with a capital letter which is the proper way for them to be):
381
382
383
384
385
386
387
X