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
NullPointerException with setPaintOrder()?
By FlyingRabidUnicornPig, with 2 replies.
Last reply by FlyingRabidUnicornPig, over 13 years ago:
Well a I already know abstracts work, LightActor and UseableActor are abstract. I wished interfaces would work. I don't want an empty abstract class that any HUD items need to extend, especially since a couple of the HUD implemented classes extend other objects...
Ideas to make grenade?
By Miikku, with 1 reply.
Replied to by FlyingRabidUnicornPig, over 13 years ago:
A Grenade actor would need several things, a time limit to detonation, a blast radius, and affecting specific actors around it are the three biggest things that come to my mind. A detonation is easy if you know how to create counters that count down or up to the time. The blast radius and affecting other actors is a little bit harder. You need to use getObjectsInRange() to find actors around the grenade, and then affect them accordingly. Here's an example of how to use getObjectsInRange():
Everytime it changes the world, but why?!
By JesusJesus, with 30 replies.
Last reply by JesusJesus, over 13 years ago:
Sry i have only my ipad now and not the computer, but i have no error. I removed the && reload.getWorld() == null in your code and now it works, and at this time i cant see any laggs. Thank you
Enemy starting spot help
By jaydjay, with 6 replies.
Last reply by Gevater_Tod4711, over 13 years ago:
I think your ghostAi method is the problem. Try using this method:
User info question
By Game/maniac, with 9 replies.
Last reply by davmac, over 13 years ago:
Ok, so read the tutorial linked above and ask specific questions if you need more help.
Animation of Pacman
By jaydjay, with 6 replies.
Last reply by davmac, over 13 years ago:
That doesn't make sense. You need at least two images for animation - one with the mouth open and one with it shut. If you have only two images and you want to slow the animation, you have two choices: move less often, or do not animate every time you move. (You'll never get it to look like the original pacman this way; you need more images).
typing game
By Rudi, with 3 replies.
Last reply by Rudi, over 13 years ago:
may u have the example of scenario from the typing game???
Problem with color code! Help!
By Kiara, with 2 replies.
Last reply by davmac, over 13 years ago:
The 'setColor' method just changes the color that will be used to draw on the image with the drawing methods; it doesn't change the color of the image. You need to draw on the image after setting the color.
How can I make an enemy "lose health" when an arrow hits it?
By Yongjoon, with 25 replies.
Last reply by Yongjoon, over 13 years ago:
Thanks a bunch. The arrow hits, vanishes, and damages the minion. Thanks! ^^
Quick concern
By landry, with 1 reply.
Replied to by danpost, over 13 years ago:
Eliminate some large images or sound files.
help?
By programmer22, with 1 reply.
Replied to by FlyingRabidUnicornPig, over 13 years ago:
I refuse.
Grabbing Location of Actor from another Actor
By programmer274, with 3 replies.
Last reply by programmer274, over 13 years ago:
wait never mind i think i can get it to work a different way. Thank You for the help
Creating health for an object
By Neon147, with 6 replies.
Last reply by Neon147, over 13 years ago:
Ahh yes i see that now, thanks ill change the name
Setting an own font?
By Solringolt, with 8 replies.
Last reply by danpost, over 13 years ago:
You can import the Font class and then drawString text to images after 'setFont'. Example follows: <Code Omitted>
dog world help
By gyrlonfilm, with 4 replies.
Last reply by gyrlonfilm, over 13 years ago:
Got it! Thanks!
832
833
834
835
836
837
838
X