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
Text Splitting.
By HolyCheeseCurd, with 3 replies.
Last reply by danpost, about 9 years ago:
You also might consider using the
lastIndexOf(String, int)
method of the String class.
List of Fonts?
By HolyCheeseCurd, with 2 replies.
Last reply by Yehuda, about 9 years ago:
HolyCheeseCurd wrote...
Is there anywhere that I would be able to find a list of the available fonts?
I'm not so sure what you mean. The available fonts are the ones that are on the system that the program is running on. If you want to retrieve the fonts from the system in your program, then you can use the following: <Code Omitted>
How do I make an object move continuously?
By alema173, with 12 replies.
Last reply by Yehuda, about 9 years ago:
FutureCoder wrote...
try this code to get the object to move up <Code Omitted>
The following is the same code: <Code Omitted>I don't think the problem discussed here is moving, it seems to me that the object is supposed to move after the space bar is pressed (to which a solution has been given).
How to compare Greenfoot Actors
By GreenfootNewbie2000, with 17 replies.
Last reply by Yehuda, about 9 years ago:
@davmac I guess that's the end, but I of course agree that the way I showed isn't the way things should be done.
Actor not in world error
By Soggy_Diaperz, with 4 replies.
Last reply by danpost, about 9 years ago:
Cut and paste line 23, inserting it at line 17. That way you are not trying to kill an alien after edge removal.
Collision Detection
By asthaga20, with 1 reply.
Replied to by Super_Hippo, about 9 years ago:
Is this code in the act method?
Collision detection
By That0neGuy, with 16 replies.
Last reply by FutureCoder, about 9 years ago:
make a boolean variable that equals true when the player answers the question , and can only answer if the boolean variable equals false
Score board
By MikiG, with 1 reply.
Replied to by danpost, about 9 years ago:
Please see my
Value Display Tutorial
scenario.
thread not running, cause of error
By divinity, with no replies.
hi am doing thread running race the hare and tortoise timeless running race, but I change the variable from hare to cat and tortoise to dog, everything seem to going smooth except when it reach where it was interrupted method. can someone tell men why the compiler is not recognizing this error and how to fix it. here is the code <Code Omitted> any help would be greatly appreciately and tell me how to fix it
Incomparable Image and String Error
By Nameless477, with 9 replies.
Last reply by Nameless477, about 9 years ago:
aha! placing the code in the act method of the Card class achieves the desired results. Thank you :)
Why is there a null pointer exception
By GreenfootNewbie2000, with 13 replies.
Last reply by Yehuda, about 9 years ago:
danpost wrote...
Oh, please stop!
Done.
Keeping counter value over worlds.
By OKNEM, with 12 replies.
Last reply by OKNEM, about 9 years ago:
So I've found that this works, but the worlds are on a loop. I've tried to take what you said and input this into the act method of Myworld3:
Leaves and Wombats
By anu1217, with 8 replies.
Last reply by anu1217, about 9 years ago:
Yes, I found out how to change the way the wombats move. That was what I was looking for.
How can i spawn an actor from another actor
By Lucius, with 3 replies.
Last reply by Yehuda, about 9 years ago:
FutureCoder wrote...
it's not working because you can't just use normalbullet.setRotation(getRotation()); to get the rotation.
That's not really true, if the setRotation method is public in Actor then it can be called on any instance of Actor. If NormalBullet is an extension of Actor then technically the following will work on it also: <Code Omitted>There are methods which you can't call like this since they are 'protected' methods in class greenfoot.Actor as opposed to 'public'.
Missing Colors in Greenfoot.Color
By Caotianyu, with 2 replies.
Last reply by Yehuda, about 9 years ago:
It think Java originally had lowercase letters then added in the capital letters since the colors are constants. Greenfoot only used the constant named fields, which are the same colors as the lowercase ones.
345
346
347
348
349
350
351
X