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
Actor removeFromWorld()
By MrBradley, with no replies.
Has any thought been given to the possibility of adding a removeFromWorld() method on Actor? This would be similar in purpose to the addedToWorld() method that allows some customization. In removeFromWorld, it allows for the opportunity for an Actor to take some appropriate action. At the least, the instance would be notified of an imminent removal. If this has been considered in the past, what was the reasoning for not adding it? Thanks, Mr Bradley
Adding Enemies in different waves
By LobsterL, with 13 replies.
Last reply by LobsterL, over 9 years ago:
i have figured it out thanks for the help
Press 'Run' button via keyboard press
By Beth, with 2 replies.
Last reply by Beth, over 9 years ago:
Thanks
Obstacles in the map.
By SystemZero, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
Did you put the code into the act method? If this is already the case, make sure you don't remove the object from the world before this code is executed.
I nedd help with isTouching()
By SystemZero, with 11 replies.
Last reply by Super_Hippo, over 9 years ago:
<Code Omitted> Btw, I think you can simplify your act method to: <Code Omitted>
full screen or hide subclasses and worlds pls help
By EXEfood, with 1 reply.
Replied to by danpost, over 9 years ago:
You can export the project as an executable jar file (application) via the 'Share' button and the appropriate tab in the pop-up. Then you will only see the game and two buttons (Run/Pause and Reset).
Help my pacman game
By mole2003, with 6 replies.
Last reply by mole2003, over 9 years ago:
thank you I'm so stupid.
Help with wait() method in greenfoot!!
By Venbha, with 4 replies.
Last reply by danpost, over 9 years ago:
The 'wait' methods of the Object class are thread operations which are not intended to be used with greenfoot. Greenfoot provides the act method, which can be used to control when an object does anything (which is the same as when it is not to do something, or anything)..
Problem with GreenfootImage constructor
By valdes, with 2 replies.
Last reply by valdes, over 9 years ago:
Thank you very much!
paceman problems
By EXEfood, with 2 replies.
Last reply by Super_Hippo, over 9 years ago:
Not sure why pacman ends in a wall, but the error message happens in the Level class, so you have to show this class.
trying to add checkbox to a button group but keeping an error
By divinity, with 13 replies.
Last reply by Super_Hippo, over 9 years ago:
I think danpost referred to the code you used above for the different sizes where you had: <Code Omitted>Do you have the same for the crusts? <Code Omitted>
Ability Cooldowns
By ToraAvanak, with 1 reply.
Replied to by danpost, over 9 years ago:
Sounds like you could use something like a bar type object (similar to a health bar in appearance). Only, this bar will either increase or decrease with time and the ability will be reusable when the time has expired. You can check out my
Value Display Tutorial
scenario to see how to create a bar object (or other type object that can display your timer). If you cannot access it, you can also find the tutorial
here
. I do have a Bar support class that you could use. It is
LineOfSight Method
By LobsterL, with 2 replies.
Last reply by Super_Hippo, over 9 years ago:
Is there a clearLineOfSight method in your LineOfSight class?
New to greenfoot
By lightninggg, with 1 reply.
Replied to by danpost, over 9 years ago:
If some condition, get random x and y within world bounds and set actor at new coordinates. Basically, in the class of the actor that is to disappear and appear elsewhere: <Code Omitted>
timer for a game
By kiks4, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
Nothing, you only need to add a Timer object into the world. Well, you need Greenfoot version 3.1.0 or you need to import the java.awt Color and Font classes.
332
333
334
335
336
337
338
X