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
setImage() ???
By eluop, with 1 reply.
Replied to by Gingervitis, almost 13 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, almost 13 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, almost 13 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, almost 13 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, almost 13 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, almost 13 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, almost 13 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, almost 13 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.
If statements aren't working in Greenfoot
By student101, with 10 replies.
Last reply by student101, almost 13 years ago:
Nevermind, I managed to solve the problem on my own!
Level changing issues :(
By Draymothisk, with 1 reply.
Replied to by danpost, almost 13 years ago:
If you had increase/decrease/set methods, then you can use the 'set' methods for stats (Health, score, and lives) to 'pass' the information to the new world. For example, just to show the idea: <Code Omitted>
Need help, I´m a noob at Greenfoot :(
By herzi789, with 5 replies.
Last reply by Draymothisk, almost 13 years ago:
You could check your dog's x or y position and move according to that. The code would be simple. Assuming your world's size is 600 pixels wide, you can tell your dog the following. If your X position is greater than or equal to 590 (10 pixels less than your world's total width), move left (a negative number). If your X position is less than or equal to 10 (10 pixels more than your world's minimum width), move right (a positive number). The following code is exactly what is written here, except I created a variable named speed to hold our positive/negative number. With just this code, yo
Walls
By Gingervitis, with 4 replies.
Last reply by Draymothisk, almost 13 years ago:
For a simple, beginners way of doing hit detection, try this. Actor Wall; Wall = getOneIntersectingObject(Wall.class); if(Wall != null) { //Wall is being hit. Do things here. moveRight = 0; //stop character from moving right or whatever. } else { //Wall is not being hit } Change "Wall.class" to whatever your wall class is named. The rest of "Wall", such as the first after "Actor", can be named what ever you want.
add a new line depending on the amount of character (or words)
By tylers, with 6 replies.
Last reply by tylers, almost 13 years ago:
yes, thanks :D how could i add that to my code ( how could i use it)
dont matter
Actor is going through wall on the left side.
By Qslick, with 3 replies.
Last reply by Qslick, almost 13 years ago:
Thanks It WORKS!!!!!
882
883
884
885
886
887
888
X