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
turn cords location
By Future, with 6 replies.
Last reply by danpost, almost 13 years ago:
I never said that would fix your code. I think it would be best for you to go over the Greenfoot tutorials accessed through the 'Documentation' link above before continuing to attempt to write any code. You seem to be lost as far as some of the basics of programming with Greenfoot and Java.
Respawning
By MoneyFishSlap, with 14 replies.
Last reply by danpost, almost 13 years ago:
First, let me say that it is customary to start variable (aka field) names with lowercase letters. It gets a litle confusing for those looking at your code when you use the same name for a class as well as a field ('Worm'). Next, you already have the intersecting object in the field 'Worm' when you (again) get it in line 7. Finally, line 10 does not relocate the Worm object, but relocates the Crab object instead. The following would be more what you need:
Countdown Issues
By ctgreenfoot, with 2 replies.
Last reply by ctgreenfoot, almost 13 years ago:
thanks!
Help with quick changing images
By seanyou100, with 4 replies.
Last reply by seanyou100, almost 13 years ago:
Thanks. It works perfectly now :D
World Edge
By ctgreenfoot, with 6 replies.
Last reply by ctgreenfoot, almost 13 years ago:
thank you!
Problems with Movement Animation
By JimmyFake, with 22 replies.
Last reply by danpost, almost 13 years ago:
Refer to
this discussion post
.
Flashlight?
By nooby123, with 3 replies.
Last reply by danpost, almost 13 years ago:
You must clear the image and draw opaque colors only where you do not want it to be transparent. Once a pixel of an image is set with an alpha value, any further 'draw'ing over it will still have that minimum alpha value. I just uploaded a new scenario with a support class that will do what you want. It is called
Light Beam Class Demo
.
Mouse interaction
By wafflepudding, with 2 replies.
Last reply by wafflepudding, almost 13 years ago:
It worked! Thanks man!
Smaller field borders that World's are being defined
By cosmophobia, with 3 replies.
Last reply by cosmophobia, almost 13 years ago:
Thank you nooby123, I will give it a try right away. Once again, thanks for your prompt reply!
Stay on the road
By Dytanoth, with 7 replies.
Last reply by Dytanoth, almost 13 years ago:
You, sir, are a genius. I wouldn't have thought of this myself. I'd like to thank you for you help, this really is helpfull!
using up/right arrow keys to get movement in that direction
By LukeCrawford, with 1 reply.
Replied to by danpost, almost 13 years ago:
Start with base offsets for x and y initially set to zero. Adjust those values depending on the keys pressed. Then use the final results to determine the direction of movement.
Problem
By Ploppy, with 4 replies.
Last reply by danpost, almost 13 years ago:
I would like to know if you would want to display to the player how many have been killed or if you just want to hold the value internally.
Is there a "keyPressed" method in Greenfoot?
By Minion1, with 15 replies.
Last reply by actinium, almost 13 years ago:
i get what you mean danpost !.
Making and using a list
By Minion1, with 12 replies.
Last reply by Minion1, almost 13 years ago:
The game is shaping up pretty nicely! I'm very proud even if it is not really much of a game. For my second game ever, it's not too bad. The hero can now move seamlessly between 9 areas, with 4 different monsters, one item to pick up, and even some music I added. I'm having a good time with this.
Why doesn't it work?
By Ploppy, with 2 replies.
Last reply by Ploppy, almost 13 years ago:
THANK YOU! I'm still a beginner, :P
904
905
906
907
908
909
910
X