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
Getting the error "java.lang.IllegalArgumentException: java.io.FileNotFoundException: Could not find file: (file)
By Lev, with 1 reply.
Replied to by danpost, over 8 years ago:
Lev wrote...
I'm making and have encountered an error that I cannot fix at all. java.lang.IllegalArgumentException: java.io.FileNotFoundException: Could not find file: RogueUpA
The file names are missing their extensions (".jpg", ".png", or ".gif").
getIntersectingObjects - Enemy takes Damage from Bullet
By fabipfolix, with 14 replies.
Last reply by fabipfolix, over 8 years ago:
danpost wrote...
fabipfolix wrote...
And how can I solve this problem?
Change the conditional operator (currently ">=") to something more appropriate.
Thank you, i missed, that it was the false one ^^ Now it's working :D
How do I make this actor, addObject of some other actor?
By JOELwindows7, with 7 replies.
Last reply by danpost, over 8 years ago:
JOELwindows7 wrote...
Greenfoot, Please don't detect spam this way where I have to wait 24 hours. if the the thread got expired, everyone will think helpers or programmers are ignorant!
They want to make sure you are not spamming or promoting another site. This only happens the first time you add a link into a post (usually).
Complicated problem. Pls help!
By Chrizzi, with 14 replies.
Last reply by Chrizzi, over 8 years ago:
Thank you very much :)
How do I make the retry button that does move to the same new instance of world where the button was?
By JOELwindows7, with 7 replies.
Last reply by JOELwindows7, over 8 years ago:
danpost wrote...
JOELwindows7 wrote...
Why would I have to tediously re-register every single level into that if-else registrations?
Well, whatever you do, it will have to be coded separately for each type world -- whether you use an if/if-else construct, a switch statement or inheritance (like how my
Super Level Support Class Demo
scenario controls the levels).
I have used some of the refferences. it works out with little tuning. thx! an optional coding result is coming soon stay tuned.
How to create ball that bounces?
By RSekander, with 1 reply.
Replied to by danpost, over 8 years ago:
You start with some action code -- make it move, detect edges and blocks, etc. I do not know if you will have your ball change its appearance at some point, but for now you can change your updateImage method to this: <Code Omitted>The
ball.clear
was removed because a new
GreenfootImage
object created by given dimensions starts out clear.
How can i remove Object after Time?
By Demyo, with 2 replies.
Last reply by danpost, over 8 years ago:
Demyo wrote...
Hello, i got a problem. I want to remove an Object after 10 seconds but i dont want to use Greenfoot.delay(10) because it pauses the game. << Code Omitted >>
The main entries: <Code Omitted>
How to make my game End?
By Kuhakuu1428, with 2 replies.
Last reply by Kuhakuu1428, over 8 years ago:
I understand, thank you very much :)
Alle Objekte einer Klasse aufeinmal neu platzieren/bewegen
By hdavid, with 8 replies.
Last reply by Super_Hippo, over 8 years ago:
Mit der Version 3.1.0 klappt es auch ohne den Umweg.
How to do a wheelie - make a ramp
By Kinq, with 6 replies.
Last reply by Kinq, over 8 years ago:
Thanks
Fleas Game
By stevex, with 6 replies.
Last reply by danpost, over 8 years ago:
stevex wrote...
Is there a way to run the transpiler to try the javascript version?
Without any available code to your project, it is impossible to say why it will not run in HTML5. However, in the majority of the times, it is because some class in the
java.awt
package is being used.
How do I make each player play once?
By MyName, with 5 replies.
Last reply by danpost, over 8 years ago:
Well, the
turno
method should now be this: <Code Omitted>If you still get an error (or if you do in the future), do not just say you are getting one -- show what error output you are being given.
I'm trying to make this object turn randomly without going through walls.
By Lev, with 1 reply.
Replied to by danpost, over 8 years ago:
Lev wrote...
I have an object named leviathan, how do i get it to move randomly without letting it go through the walls of the maze? << Code Omitted >> I posted yesterday asking how to get my rocket to not go through walls when controlling it, so I'm basing my code off of that. << Code Omitted >>
In each case (direction) in your original code, you did two things -- (1) moved; and (2) if saw wall, moved back. This is not consistent with your new code.
Help! The world constructor threw an exception.
By dave6969, with 3 replies.
Last reply by dave6969, over 8 years ago:
Thanks!
I'm trying to make my class not go through walls.
By Lev, with 4 replies.
Last reply by Lev, over 8 years ago:
I figured it out! Thank you for not giving me the answer xD
253
254
255
256
257
258
259
X