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 change direction of shooting
By greenwood, with 5 replies.
Last reply by danpost, almost 3 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 3 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 3 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, almost 3 years ago:
i have solved the problem :-)
Help needed for game idea!
By Dreadd, with 2 replies.
Last reply by Dreadd, almost 3 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, almost 3 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, almost 3 years ago:
If you want your text to show above other actors, then use the
setPaintOrder
World
instance method.
How to make enemies in Greenfoot version 3.7.0
By Karlachan, with 1 reply.
Replied to by danpost, almost 3 years ago:
Karlachan wrote...
Hi I am making a mini game with a partner for our school project. We used the code from this video to make our enemies: https://www.youtube.com/watch?v=L9lnAeEgA2M however, it always marks an error in our editor. So our guess is that the version of Greenfoot we are using is different from the video. So, how can we adapt this code for Greenfoot Version 3.7.0?
It is best to show the codes
YOU
are using.
Object moving towards another object
By xixEmilyxix, with 6 replies.
Last reply by xixEmilyxix, almost 3 years ago:
thank you
World doesn't display text although code is correct - why?
By CodingCowgirl, with 8 replies.
Last reply by CodingCowgirl, almost 3 years ago:
@danpost It's a simple button that redirects to the next question.
Displays greenfoot logo image
By AbdulrazaqAS, with 1 reply.
Replied to by danpost, almost 3 years ago:
AbdulrazaqAS wrote...
I set different images to different characters but if I click run/reset, all of the characters display a foot(i.e. greenfoot logo).
How did you "set" the images? Explain or show code (which every way you did it).
Problems to launch greenfoot after installation
By Karlachan, with 3 replies.
Last reply by danpost, almost 3 years ago:
Try an earlier version or the USB version.
how to make my actor move slower/faster after touching something
By spiu, with 7 replies.
Last reply by spiu, almost 3 years ago:
Hi! Thank you both, the frog now moves at different speeds thank you so much. I didn't mention it before but the DoubleBug actually gives double points when its eaten lol. This is how the code looks like with the modifications you made
FROG JUMP
By ronald, with 15 replies.
Last reply by danpost, almost 3 years ago:
ronald wrote...
I didn t do what I wanted, it will be another time. I have just published my scenario with the source code tell me why the screen is black, I think it is because of the images which are superimposed or something else, yet it works well thank you
javascript probably does not like the fact that you have to create an image to get its width for the class field
picWidth
.
Random spawn enemy
By Gengar360, with 1 reply.
Replied to by danpost, almost 3 years ago:
Either (for left side): <Code Omitted>or (for right side): <Code Omitted>
46
47
48
49
50
51
52
X