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
time scale of the act method not linear?
By efe, with 3 replies.
Last reply by efe, almost 11 years ago:
...embarrassed! Thanks guys for pointing out the obvious to me! I hope my students don't find this.
I need help with Counter
By AmericanaStorm, with 11 replies.
Last reply by danpost, almost 11 years ago:
danpost wrote...
< Quote omitted > You had all the bits and pieces in your original code post (getting a reference to the Counter object and using the 'addScore' method). You just need to put them together properly.
I need not add more (everything needed was given somewhere in this discussion thread).
Interactive block
By Jellyfish, with 23 replies.
Last reply by davmac, almost 11 years ago:
Jellyfish wrote...
how do I put in speed? What would the edited code be???
How about this: what value did you
intend
'speed' to represent? How would that value be determined?
getX(), getY() From Different Actor
By FlamingWaters, with 2 replies.
Last reply by FlamingWaters, almost 11 years ago:
Thanks!
Increasing speed based on Score
By Montrigil30, with 2 replies.
Last reply by Montrigil30, almost 11 years ago:
Thanks so much for your quick response! Really good solution, i feel like you made me go a huge step towards actually using logic in programming (Im only a newbie) Thank you again, I was stuck with this problem for so long :D
greenfoot.awt.font and color
By 60sChallange, with 1 reply.
Replied to by davmac, almost 11 years ago:
There is no greenfoot.awt package. To refer to the java.awt.Font class, you have to use that name: java.awt.Font.
Problem with having bullet hit different enemies
By DarkGhost, with 5 replies.
Last reply by DarkGhost, almost 11 years ago:
Sweet, thanks so much! It works now! Thanks for your help!
IOException writing debug log
By xWanna, with 2 replies.
Last reply by xWanna, almost 11 years ago:
Thanks man.
Problem with Robot going back and forth forever?
By Tommy99, with 4 replies.
Last reply by Tommy99, almost 11 years ago:
Oh okay, thanks.
Player movement based on player type
By senor_ribs, with 4 replies.
Last reply by danpost, almost 11 years ago:
Maybe you should go over the
Greenfoot tutorials
(for basic info on using the application and getting started). You can also view some short videos (linked on the same page) for how-to on various topics. As far as the code itself, which is pure java, you can check out the
Java tutorials
. The second section,
Trails Covering the Basics
, would be the place to start.
Why won't this thing spawn!?
By DoctorMitch, with 2 replies.
Last reply by DoctorMitch, almost 11 years ago:
Thank you for your concern, but I made it work so that instead of the cube class deleting itself and replacing itself in a spawn point, it would just stay where it was, and things would spawn around it. When I upload the game, feel free to see for yourself.
NullPointerException at 2DArray
By ds06, with 10 replies.
Last reply by ds06, almost 11 years ago:
Thanks danpost, worked well :) I tried some differrent stuff and changed the way the Board is drawed entirely :D First it will create objects of Free for the blocks i want to be able to place. (line 27-85)
Dreieck
Viereck
Doppel
EinzelBlock
After that, the other fields of the board will be filled with blocked blocks.(line 87-95) At the end it would add the rigth amount of my placeable blocks to the field.(line 99-122)
I am having difficulty making a memory card game. Can anyone help me with this?
By misty11misty, with 4 replies.
Last reply by davmac, almost 11 years ago:
You can use the Actor's setImage() method to set the image of a card to make it appear that it has turned over.
Help taking away health from enemy
By DarkGhost, with 2 replies.
Last reply by DarkGhost, almost 11 years ago:
Great that worked brilliantly! Thank you! :)
Help Stopping Music
By shooterbooth, with 5 replies.
Last reply by davmac, almost 11 years ago:
First, please
use code tags
when you post code: <Image Omitted> Now, in the code you posted you are creating a
new
sound and then immediately checking if it is playing: <Code Omitted> The condition can never be true. You only just created the sound object, so there is no way it can be playing. You need to use the
same
sound object that you initially started playing, and
599
600
601
602
603
604
605
X