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
need help with coding my movement using keys
By roonie01, with 2 replies.
Last reply by roonie01, almost 4 years ago:
so i moved my movements to the actor that the movements is called for this is what my code looks like but my actor still don't move and neither the world or actor have a image
Improve crab and worm game
By fdl._.11, with 6 replies.
Last reply by danpost, almost 4 years ago:
fdl._.11 wrote...
here is my code << Code Omitted >>
More simply: <Code Omitted>
Greenfoot book version 2 pdf
By AbdulrazaqAS, with 2 replies.
Last reply by danpost, almost 4 years ago:
Try this one:
bookstore
Shooter game
By Pie8756, with 8 replies.
Last reply by danpost, almost 4 years ago:
In the Mover class above, you have lines commented out that probably should not be. Make sure that you have the following in that class: <Code Omitted>
cutscene
By Dlantz, with 4 replies.
Last reply by Dlantz, almost 4 years ago:
1 thank you, also a joke a yes my favorite gif an mp3
Como subir un escenario...
By Gabriela_Diaz_A, with 6 replies.
Last reply by Gabriela_Diaz_A, almost 4 years ago:
ahh thank you Roshan123
Need to differentiate Super class and subclass
By Professorhafeez, with 1 reply.
Replied to by danpost, almost 4 years ago:
East should not extend West. It should extend World ?? or Greenworld? Extending a class means that the newly described objects that the new class creates will be of the same type. When you extends World, you will describe a new type of World. If East extends West, you are saying that an East world IS a West world.
Collisions not working properly
By theVeritas_, with 16 replies.
Last reply by theVeritas_, almost 4 years ago:
Oh, ye, that was the problem :'D Thanks, I don't know why I put dir in act(), but I think I moved the change of dir because there was some error? I think? And yeah, that was probably because dir wasn't as class variable, but local in act() method. Thanks again!
Need change direction of shooting
By greenwood, with 5 replies.
Last reply by danpost, almost 4 years ago:
greenwood wrote...
i have another problem. How to limit the number of zombie spawns ? Let say I want only 15 zombies to spawn
If you want no more than 15 in the world at one time, you can use: <Code Omitted>to limit spawning. If you want only 15 to spawn in total, then add a counter field and use it to limit the spawning: <Code Omitted>
Important Question regarding greenfoot
By Professorhafeez, with 1 reply.
Replied to by Super_Hippo, almost 4 years ago:
While the scenario is paused, you can right click on objects to Inspect them.
my shooting animation not fully animated
By greenwood, with 2 replies.
Last reply by danpost, almost 4 years ago:
There is a lot that can be improved upon in your code. The biggest concern I have is that you are loading a bunch of images every frame when moving or shooting, where you can have the images pre-loaded to use when needed.
counter not working
By vbh, with 5 replies.
Last reply by vbh, about 4 years ago:
i have solved the problem :-)
Help needed for game idea!
By Dreadd, with 2 replies.
Last reply by Dreadd, about 4 years ago:
Conkorde wrote...
You could make anything you want, wouldn't recommend a dating sim tho
i am very lonely
FileNotFoundException - Eclipse
By ronald, with 5 replies.
Last reply by danpost, about 4 years ago:
ronald wrote...
where did you see this sentence? which API?
danpost wrote...
If the named file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading then a FileNotFoundException is thrown.
FileOutputStream-java.io.File
How do I create layers for my graphics? | Java
By CodingCowgirl, with 1 reply.
Replied to by danpost, about 4 years ago:
If you want your text to show above other actors, then use the
setPaintOrder
World
instance method.
51
52
53
54
55
56
57
X