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 to delete greenfoot discussion account?
By IlikeThePrequels, with 1 reply.
Replied to by danpost, over 8 years ago:
IlikeThePrequels wrote...
I need to be able to remove my posts and my account?
Good luck with that.
help on random object spawn
By knuckels5739, with 2 replies.
Last reply by knuckels5739, over 8 years ago:
thx dude!
Image duplication
By Lavenger, with 1 reply.
Replied to by danpost, over 8 years ago:
Please explain why you have the FrontImage class extending the BackFront class. Give a full description of what objects of each class are and how they are going to be used.
How do I Array multiple sounds to randomly chose a sound and have the actor play the one chosen
By toba4366, with 3 replies.
Last reply by toba4366, over 8 years ago:
thanks
Questions Related to Setting the Background
By RandomLittleWeeb, with 1 reply.
Replied to by danpost, over 8 years ago:
Remove line 17, for one thing. You may want to override the
addedToWorld(World)
method and move line 16 into it.
Problem With actor Spawning
By OfficerRiot, with 2 replies.
Last reply by danpost, over 8 years ago:
It is not super weird, and not even surprising. Remember that any action code is executed many times per second (usually about 60). When pressing and detecting a downed key, even if you just tap it quickly, the code will almost always execute two or more times (it takes a lot of time in terms of computer speed for a key to be pressed and released). Therefore, you need another condition (the first being that the key is down) to regulate the spawning of the actor. A second condition that should work might be that no object of the type being spawned are currently in the world.
Group project fails to initialize when uploaded to Greenfoot website
By BigBenRedux, with 2 replies.
Last reply by BigBenRedux, over 8 years ago:
Thank you.
Greenfoot switch worlds
By pkd, with 6 replies.
Last reply by danpost, over 8 years ago:
pkd wrote...
Do I have to enter "new" to run the program?
You use "
new
" to create an object out of a class. So if
CopyOfCrabWorld
is the name of subclass of
World
and you wish to create a
CopyOfCrabWorld
object (or instance), then, yes -- use "
new CopyOfCrabWorld()
" to create it. The parenthesis at the end are important also (they are for any parameters needed for its creation).
can I use an (id==) for If canSee.asap.class?
By Shabir, with 8 replies.
Last reply by Shabir, over 8 years ago:
The flower which is located at (147,447 ) I can't get there with the player controlled with wasd, but I can with the one controlled with the arrows. I have used the same code for both.
Losing a life once on actor is touching another
By LobsterL, with 9 replies.
Last reply by LobsterL, over 8 years ago:
Thanks Danpost, i have realized that without creating a reset method the actor will continuously lose lives as it touches the cars.
Is there a way I can copy all of my code?
By IlikeThePrequels, with no replies.
I need to put all of my code on a word document.
Slower image switches
By OfficerRiot, with 7 replies.
Last reply by danpost, over 8 years ago:
OfficerRiot wrote...
Is there anywhere where I can find examples of this tried a couple out but got nothing to work.
This
was in one of the discussions that come up with the search:
danpost wrote...
There are multiple examples within these discussion threads. Search 'slow down animation'.
it says the code is wrong
By vegadyashkumar@gmail.com, with 1 reply.
Replied to by danpost, over 8 years ago:
What says the code is wrong? and what exactly is it saying?
Making a text box with random numbers
By myeongil, with 1 reply.
Replied to by danpost, over 8 years ago:
My
Value Display Tutorial
scenario should help as far as the text box is concerned. The counting of pennies in the target area should be done in a static field (set to zero by world constructor) in the Penny class. Each penny should keep track of their state of being in the target area or not and adjust the counting field when moving in and out of that area (as well as updating its retained state. The retaining of the state is needed to tell when the state actually changes. The number that is randomly chosen to be in the text box will
Help Me!!!!
By Heet_Patel, with 21 replies.
Last reply by Heet_Patel, over 8 years ago:
its okay the game is done tnx
263
264
265
266
267
268
269
X