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
How to fill java.awt.geom shape in GreenfootImage?
By CubeGamer6, with 2 replies.
Last reply by CubeGamer6, about 8 years ago:
danpost wrote...
Check out the 'fillPolygon' method of the GreenfootImage class.
Thanks for the reply, but i think in order for that to work, i need to be able to turn RoundRectangle2d.Float into arrays of x and y coördinates. The RoundRectangle2D.Float class doesn't have this. I have however found a way to fill it in though. All i needed to do was add ovals to the 4 corners and add two squares in a cross pattern.
The World constructor threw an exception. See the Terminal window for more details
By Brantgarron, with 3 replies.
Last reply by Super_Hippo, about 8 years ago:
Apparently it doesn't find an image with the name 'title.png' (line 1 in the terminal window). Make sure an image with exactly that name exists in the image folder of your project.
I want to make a greenfoot game. Need help!
By frequency, with 1 reply.
Replied to by Super_Hippo, about 8 years ago:
Create an act method in your world subclass. Increase or decrease a variable (used as a timer) in the act method and whenever it hits a defined number, spawn a new Enemy and reset the timer.
Unable to find my Image file even though it is written correctly.
By Aristoclea, with 1 reply.
Replied to by danpost, about 8 years ago:
Aristoclea wrote...
Im trying to animate the aliens of space invader, but the terminal window keeps popping up that it is unable to find the second image file.
Show how you wrote it. Verify that the file name matches correctly with what you wrote (case-sensitive) and is located in the proper directory folder.
Is there a way to switch an image of the actor if it gets to a certain coordinate?
By mouseofgory, with 3 replies.
Last reply by danpost, about 8 years ago:
mouseofgory wrote...
I did try that but I don't know how to assemble the sentence, because y is an integer is it not? And the if statement is a boolean.
See
here
.
Respawn enemies
By tstockun, with 2 replies.
Last reply by tstockun, about 8 years ago:
It runs now. Thanks!
Actor can see another actor
By NielsV5B, with 2 replies.
Last reply by NielsV5B, about 8 years ago:
Thank you very much, that's finally working! (sorry for late reaction)
Changing hitbox
By NielsV5B, with 8 replies.
Last reply by NielsV5B, about 8 years ago:
Thanks, that's working now!
db error
By divinity, with 5 replies.
Last reply by danpost, about 8 years ago:
divinity wrote...
i graded it out just to see what happen, and it moved on to the next line in error.
What error were you then getting?
GetKey() Question
By abot1776, with 4 replies.
Last reply by abot1776, about 8 years ago:
Thank you so much! I may have another question or so while working on this, so I really appreciate it.
can i call the result from one void to another void
By pras, with 1 reply.
Replied to by danpost, about 8 years ago:
pras wrote...
can i call the result from one void to another void
No. A void does not give a result -- that is why it is called a void.
How do I make one object detect whether or not there is another object nearby?
By katolop, with 7 replies.
Last reply by katolop, about 8 years ago:
Thank you so much!
How to get an object to turn towards another object?
By greenmans, with 1 reply.
Replied to by Super_Hippo, about 8 years ago:
Make sure that the object you want to turn to, is in the world. Or the list is empty and you can't get the first object from an empty list.
How to check if a defined object is still in world?
By BananaJoe, with 6 replies.
Last reply by BananaJoe, about 8 years ago:
Oh, thank you for your help, in both cases. :)
Terminal is blank?
By greenmans, with 2 replies.
Last reply by greenmans, about 8 years ago:
yeah even after I do that its still blank. The first time, it worked though.
310
311
312
313
314
315
316
X