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 exit greenfoot??
By fajrizarmy, with 3 replies.
Last reply by danpost, over 12 years ago:
Very good. However, you would use <Code Omitted>for a normal exit. Non-zero amounts are used for when the program needs to be terminated for some reason other than, let us just say, that the user opts to terminate the program or the program has run its course to the end and shuts down normally.
GIF file as background
By moobe, with 2 replies.
Last reply by moobe, over 12 years ago:
Update: Fixed the bug by changing the paint order. The problem is that it's very laggy, but there aren't many ways to solve the problem.
Clear cache?
By Dytanoth, with no replies.
Is there a command to clear the cache when the game is exported? It says my memory is full. (I use couple of images to create an animation but even after compressing them it is to much)
How to copy a given text to clipboard??
By finnland, with 12 replies.
Last reply by finnland, over 12 years ago:
Thanks. It works fine!!! (http://www.greenfoot.org/scenarios/6835 in the Editor)
need help
By myheartwillgoon, with 10 replies.
Last reply by vonmeth, over 12 years ago:
@danpost, you're right, I did mean for it to be (keyWidth*12) and getWidth()-(keyWidth*12). Not sure why I reverted back to 11 there. Thanks! =) Ah, they are equivalent. I thought it was just 'luck' that 11 worked out, but looking at it again, they would be equivalent as per your explanation in the factoring.
Greenfoot sound
By moobe, with no replies.
Hi, I know there is an other threat with a problem I also have, but this is something else again now :) I'd like to play a sound only - let's say - three times. How can I manage this? After it has played it for three times it shall start the next sound. Maybe something with time? Because I know the sound file's length. And now one other thing with the sound: Before the second sound starts, I'd like to decrease the first sound's volume step by step. I've written this code tight now: <Code Omitted> The problem now is that this code is executed in only one frame. Is it possible to solve this problem?
How do you add an object to the world only once?
By Cross, with 3 replies.
Last reply by Cross, over 12 years ago:
Awesome. Thank you guys so much.
HELP PLZ my project is due on monday!!
By SpritesKing, with 20 replies.
Last reply by SpritesKing, over 12 years ago:
THANK YOU vonmeth :) greatly appreciated like always. okay now im going to try and figure out how to do when the score reaches 300 and new enemies spawns ....
Im back
By scarereeper, with 1 reply.
Replied to by scarereeper, over 12 years ago:
but im going to have to redo the tutorails and joy of codes
Help with collision
By Cross, with 3 replies.
Last reply by Cross, over 12 years ago:
Thankyou!~
Destructor
By moobe, with 25 replies.
Last reply by danpost, over 12 years ago:
moobe wrote...
what do you mean with<Code Omitted> Isn't it the same way I've written my program?
You know, maybe I changed it, and then changed it back. Sorry.
How to change the background if an actor hits the edge of the world?
By bbwf, with 23 replies.
Last reply by danpost, over 12 years ago:
Then you need to add and pass a value that tracks which world you are in, and use that value to determine which world to go to.
cannot open sound file?
By AnneMacaroni, with 2 replies.
Last reply by AnneMacaroni, over 12 years ago:
NVM, I got it :P
problems with my code again
By theuberjew, with 1 reply.
Replied to by danpost, over 12 years ago:
This statement:
if (enemyHit = true)
should be giving you an error message saying something like 'cannot find variable enemyHit'. To make it call the method, use
enemyHit
()
. At this point, you will probably get another message because you cannot assign a value to a method. This is a result of using an assignment operator '=' instead of the conditional equality operator '=='. A note on this: being the method 'enemyHit()' returns a boolean value, it is not neccessary to compare it the 'true'.
if(enemyHit())
does the same job. I did not look further into the c
Set a world
By moobe, with 7 replies.
Last reply by moobe, over 12 years ago:
Hmm, I think you haven't understood me: re-creation means repeating the level. I will think about this problem and tell you guys, when I've solved it...
890
891
892
893
894
895
896
X