Sign Up, Lost Password
You need to login to take part
How do I set the enemyHealth counter to not go below zero?
By Prannn, with no replies.
<Code Omitted><Code Omitted>
project.greenfoot not longer working
By TLHS_GAME_ACADEMY, with 1 reply.
Replied to by TLHS_GAME_ACADEMY, 2 days ago:
Found a solution. project.greenfoot still does not work, but I can load an existing project from Scenario/Open by clicking on the folder instead of project.greenfoot inside the folder.
How can I remove a specific actor, depending on the location of it and another actor (shooting with penetration)?
By Tidali, with 18 replies.
Last reply by Tidali, 2 days ago:
Okay it works not perfectly
Okay never mind I fixed it by replacing <Code Omitted>with <Code Omitted>
How to detect whether an object exists?
By Logic_Greenfoot, with 2 replies.
Last reply by Logic_Greenfoot, 3 days ago:
I made a small game. I hope it can refresh another wave of enemies after one wave of enemies is eliminated, but I don't know how to detect whether the first wave of enemies is eliminated. I hope some kind people can help me.
Have act method of your world check for their non-existence: <Code Omitted>
omg, it works.My teacher doesn't know this at all. Thank you for your help
New at programing in Greenfoot and need a help with a timer
By Enigma321, with 1 reply.
Replied to by danpost, 3 days ago:
i need to change images after 10 seconds on a actor. Itiried delay but it works partialy becoue it stops the entire game not just the process of changing images, i need a timer to work in background so the actors and the game dont stop moving. << Code Omitted >> This is my solution to the problem but it doesnt work. if you can fix it or tell me how it would save my grade at school thanks.
You cannot run the timer in the block of code that initiates the timer. Maybe this will work:
How can I modify the data of another class in one class? How to write this code.
By Logic_Greenfoot, with 3 replies.
Last reply by danpost, 5 days ago:
In order to run this code, do I need to reference the Java library?
Create border where object bounds off
By N8TH1N6, with 13 replies.
Last reply by danpost, 6 days ago:
I got some entities I added but when I spawn them with this code << Code Omitted >> They dont spawn in the gray area I tried to move them diagonily in the middle but dont really know how
If you know the size of the gray area, call it
(for gray area size), then use: <Code Omitted>If the size of the gray area is immutable, then you can just use the value itself (instead of a variable name, which would need to be declared and set to the appro
How can I show final Score in another world?
By Bob_Rafael, with 2 replies.
Last reply by Bob_Rafael, 6 days ago:
Nice, it works thank you
I am having problems with my game loading on greenfoot.
By Craby006, with no replies.
When I am editing it it works fine but when I publish it assets are missing and it lags. I don't know if it is the subclasses or not or some other hidden issue.
Creating a "choose your fighter" screen
By blueGreenYellow073, with 1 reply.
Replied to by Spock47, 9 days ago:
Yes, a solution where the player can choose her/his type of ship in a second world called Shop can be found at https://www.greenfoot.org/topics/64967/0 You can use it, you just have to use (rename) Shop/MyWorld as your StartScreen and instead of „Ship“ types you want to have „Fighter“ types. Live long and prosper, Spock47
my game is laggy only the the greenfoot website
By moltenmaster, with 7 replies.
Last reply by moltenmaster, 10 days ago:
Thanks, I'll try that and see what happens
How to run my project on NetBeans
By SliceOfCheese, with no replies.
I readed the documentation on how to do it, and all good until the part where I specefy how to run the project, I have in there exactly what the documentation says, but still, when I press run, it does not find anything to run, so I have no way of playing my project. And I need it to be on neatBeans, since Im using a data base. Please help, I have to send this proyect in less than 16 hours, and I dont know what to do :( Thanks in advance.
How to remove a text after some time
By Eugalp, with 1 reply.
Replied to by Super_Hippo, 11 days ago:
Try to use "" (empty String) as the text on the same location to make the previous text disappear.
Is it possible to use something like a Playstation or Xbox controller within Greenfoot
By Eugalp, with no replies.
I want to make a game where multiple entities can be controlled at the same time aka have multiple people playing and I was wondering if it was possible to make a Playstation or Xbox controller work within Greenfoot?
By N8TH1N6, with 6 replies.
Last reply by N8TH1N6, 12 days ago:
the first one is in the "MeineKrabbe" class wich is in actor
Okay, but lines 3 through 24 appears to be game control code which is not something any crab has any business doing. That implementation should be in your game world
method. Also, as coded, it appears that the pause menu and exit button will only be in the world for one act cycle. That is, once placed in the world and the "r" key is found to not be down, they will be removed. You would have to have the "r" key down when pressing the "escape" key to see those actor