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
whats going on???!!!!
By Williamli, with 5 replies.
Last reply by danpost, over 9 years ago:
In the bird class, cut lines 14 and 15 and paste them at line 28.
Score Counter
By Venbha, with 5 replies.
Last reply by Super_Hippo, over 9 years ago:
This doesn't really matter. You made a addScore method (you posted it above). If you just want to add one score point every act cycle, you can call the addScore method from the Counter's act method. If not, you need to access the counter object and call the addScore method on that object whenever you want to add points.
mouseclicked
By Williamli, with 3 replies.
Last reply by danpost, over 9 years ago:
The method name is 'mouseClicked' (with a uppercase 'C'); and the documentation says it requires a parameter -- an instance of some Object type (typically a World or Actor object, or 'null', where any click will return a 'true' value): <Code Omitted> You could even have references to, let us say, Button objects in your World subclass: <Code Omitted>and have the act method in that same world c
How To make button Close Game.
By dadansi, with 6 replies.
Last reply by dadansi, over 9 years ago:
wow thank you very much master :*
SETLOCATION
By Williamli, with 6 replies.
Last reply by Williamli, over 9 years ago:
oh thanks
How to create a mask?
By Klumb, with 2 replies.
Last reply by Klumb, over 9 years ago:
I can try to use it. add the mask, remove the actors, and add them back where they were.
Breakout: if a special block is hit, replace it with a normal one
By Dsprt_Grenft_Usr_Neds_Hlp, with 2 replies.
Last reply by Dsprt_Grenft_Usr_Neds_Hlp, over 9 years ago:
ty ill check ;)
Switch the World
By CanYouHelpMe, with 1 reply.
Replied to by danpost, over 9 years ago:
In act method of class of lift, you can use something like the following: <Code Omitted>
Help me create a labyrinth
By Infolover300, with 2 replies.
Last reply by Venbha, over 9 years ago:
Code?
Why don't appear new objects after some time
By GreenfootNewbie2000, with 3 replies.
Last reply by danpost, over 9 years ago:
The major issue is that you are trying to create dirt from dirt. Dirt really does not do anything on its own -- it just exists. The DIRT class should be stripped of all fields (x and y) and methods (the act method, which is what it currently has). The code in the DIRT act method (or what it does) would be better placed in the RAINBOWPLANET act method.
set actor image
By Klumb, with 2 replies.
Last reply by Klumb, over 9 years ago:
Hello, I don't know what has changed now but it works. thanks anyway!
How to get the value of a variable, but the variable is used in a sub method?
By LegendofLife, with 5 replies.
Last reply by LegendofLife, over 9 years ago:
Thank you very much it worked
Creating a score
By Witcherblood, with 4 replies.
Last reply by Witcherblood, over 9 years ago:
Thank you danpost! It works perfect, as I wanted it. You were a great help to me.
Get Location from another actor
By Aendi, with 7 replies.
Last reply by Super_Hippo, over 9 years ago:
You can remove line 3 without changing anything.
Set a time limit to the game
By Penlos, with 6 replies.
Last reply by Penlos, over 9 years ago:
Thank you both very much! You were a great help to me.
333
334
335
336
337
338
339
X