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
I would like some help using For Loops
By DarkMageCkmario, with 4 replies.
Last reply by DarkMageCkmario, over 12 years ago:
Thank you guys so much, the explanations really helped. I can continue working on this now! haha, it seems like a dumb question now. Thanks much
Moving an Object in an Ellipse
By Greenhorn, with 6 replies.
Last reply by danpost, over 12 years ago:
I have figured out a way for constant speed movement in an elliptical pattern. However, there are some limitation which limit the minimum that the speed can be. I found that a fair minimum speed is about 5 (10 would be better). What I did was use the fact that the sum of the distances to the focal point is always equal to the long axis, basically adjusting the angle from the last known location until we end up just at or inside the edge of the ellipse. My class code ended up to be this:
Change Color of an Image
By Pointifix, with 27 replies.
Last reply by Pointifix, over 12 years ago:
:DDD you pro :) ill study rgbimagefilter class tomorrow a bit to get this colored: mom it looks like that if you are interessted: http://www.fotos-hochladen.net/view/unbenanntlbqzruj6tw.jpg just random placed all different objects in different directions ;) good night now ;)
Integer accessible in different actors
By coderr, with 6 replies.
Last reply by lordhershey, over 12 years ago:
I forgot to add this as well, you can make a static initialization block that is done only once when the class is loaded. <Code Omitted> But if you reset the game, this init block might not run again unless the class is dumped and reloaded into the JVM.
Selecting a file
By GreenAnthony, with 2 replies.
Last reply by GreenAnthony, over 12 years ago:
Doesn't matter anymore, I got a brute-force tool of the internet... Anyways thanks for the help... I guess... And by the way, I was only going to program it to use it for MY own accounts. Not for hacking.
Using doubles in movement
By polar568, with 4 replies.
Last reply by polar568, over 12 years ago:
Thanks! I just used the SmoothMover class and this helps clear it up how it works!
How improve a String related program
By JasonZhu, with 16 replies.
Last reply by JasonZhu, over 12 years ago:
Thanks so much for all the help you provided me and putting up with me! You really are the best! :)
How to Fix Error Message
By patrick26, with 5 replies.
Last reply by danpost, over 12 years ago:
The error is not in your BalloonWorld class. It is in your Balloon class at line 28 (in the 'act' method). This is what is indicated here: at Balloon.act(Balloon.java:28)
BlueJ Discussions?
By allekalle, with 2 replies.
Last reply by danpost, over 12 years ago:
You should probably check out the
Java tutorials
; particularly the
Trails Covering the Basics
(second section labeled in red on the left).
Need help using vector
By karolis, with 16 replies.
Last reply by karolis, over 12 years ago:
ahh yes, thank you, very useful how you explain everything too :)
Variable Names using?
By Pointifix, with 3 replies.
Last reply by danpost, over 12 years ago:
Pointifix wrote...
i,j,k mhhmm just cause they are near on your keyboard? the names does not have any meaning any more then.
No. Because they come consecutively in the alphabet. A through H were for alphas and I through Z were for numbers. But , as far as not having any meaning any more, I would say they still do. 'x' and 'y' for coordinates; 'w' and 'h' for height and width; 'v' for velocity; 'i', 'j', 'k' for counters one, two and three; etc. Replacing them with more descriptive names would not hurt, however.
Random Images
By patrick26, with 1 reply.
Replied to by bourne, over 12 years ago:
Are the 3 images inside an array or List? Which case you could do something like this: <Code Omitted> Or you could do something like this: <Code Omitted>
Returning Objects back to the World
By patrick26, with 1 reply.
Replied to by bourne, over 12 years ago:
Check its y-coordinate (getY() method) to see if it is near the World's bottom (World.getHeight() method). And use Actor's setLocation(int, int) to move the Actor to the top, like this: setLocation(getX(), 0)
Adding Multiple Objects to the World at Start-Up
By patrick26, with 1 reply.
Replied to by bourne, over 12 years ago:
Loops
Brute-Force tool
By GreenAnthony, with 4 replies.
Last reply by GreenAnthony, over 12 years ago:
Anyways, I tried the code I wrote in real Java programing (not Eclipse but notepad) and it worked, however it doesn't select a file.... Meaning it runs in cmd and shows everything it tries however it doesn't recover any passwords as it doesn't know where to type everything into... How can I fix that??
719
720
721
722
723
724
725
X