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
Stopping an Object
By Gingervitis, with 1 reply.
Replied to by danpost, about 12 years ago:
If you are starting at the bottom left of the screen, the y value is already maxed out. You probably meant that you do not want it to go past 370 on the x-Axis (not the y-Axis). <Code Omitted>If I was wrong about what you meant, just change the 'X's to 'Y's and move the '+1' from the 'getX()' to the 'getY()'.
Balloon Loop
By Eli.A, with 2 replies.
Last reply by Eli.A, about 12 years ago:
Okay, I copied and pasted your code. It is giving me an error though :( The error is "illegal start of type". I put where the error is located in the code before
Dissapear on edge error!?!?!?!!? PLZ HELP ME
By Eli.A, with 22 replies.
Last reply by Eli.A, about 12 years ago:
YES!!! Thank you so much!!!
Counting Objects
By Gingervitis, with 9 replies.
Last reply by Gingervitis, about 12 years ago:
Ok. I guess that makes sense.
getObjectsInRange Method not working...
By postamt, with 3 replies.
Last reply by danpost, about 12 years ago:
The reason it did not work is because you were asking for a 'Class' in the list, not an 'Object'. 'actors' will contain a list of objects created from the specified class, not the classes themselves.
Sound Plays at Delay
By Qslick, with 2 replies.
Last reply by danpost, about 12 years ago:
It may be that it takes a moment for the sound file to load. You can declare a class field to hold a GreenfootSound object so it is in memory when you need it. <Code Omitted>
setImage() ???
By eluop, with 1 reply.
Replied to by Gingervitis, about 12 years ago:
when you want to set a image, the image file has to be in quotation marks. setImage("java.lang.kasper.png")
Stoping the sound playing
By Solringolt, with 3 replies.
Last reply by Solringolt, about 12 years ago:
Thx a lot! It works now :D
Sound playing through to fast !
By Qslick, with no replies.
Hello, In my game I'm trying to play a walking sound as the actor is walking. I have a sound file of 1 foot step and a sound a files of5 foot steps in sequence. When I implimit the 1 step sound it plays through so fast you don't know what your hearing. On the other hand the 5 foot step sounds build up on each other and lay after he stops walking. How do I slow it down.
Problems with SimpleTimer...
By sqwuckies, with 10 replies.
Last reply by danpost, about 12 years ago:
Of course, I did not catch that when I added the boolean. Good job.
Why isn't it working?
By Korgaz, with 4 replies.
Last reply by Korgaz, about 12 years ago:
Ah I see, thank you! This help in the forum is just great. I really appreciate that.
Changing Colours when Bouncing
By Memises, with 4 replies.
Last reply by Memises, about 12 years ago:
Thanks, I got the code to work with the help from a friend and using the "fillOval" command.
String Issue :(
By Draymothisk, with 6 replies.
Last reply by danpost, about 12 years ago:
Draymothisk wrote...
For that second example you used Davmac, can you explain that a bit more?
Please refer to the Java tutorial pages on
interfaces
.
how to make project into full screen?
By fajrizarmy, with 1 reply.
Replied to by danpost, about 12 years ago:
Key 'full screen' as the search text in the search box above and check out some of the discussions listed.
How to make an Image rotate
By xxhero24xx, with 5 replies.
Last reply by danpost, about 12 years ago:
To change the image, use the 'setImage' method in the Actor class. To detect the keystrokes, use one of the methods in the 'Greenfoot' class. Use appropriate conditions (in an 'if' statement) in the 'act' method, or a method it calls, to determine if image needs changed or not.
879
880
881
882
883
884
885
X