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
"Incompatible types" Whazhappaning?
By darkmist255, with 8 replies.
Last reply by Builderboy2005, almost 13 years ago:
Casting does indeed work for actors, as well as most classes. And that's good to hear about your class name :P
getX() and getY(), what point is actually returned?
By darkmist255, with 4 replies.
Last reply by darkmist255, almost 13 years ago:
Thanks :D!
Just a thought, is this possible?
By darkmist255, with 2 replies.
Last reply by darkmist255, almost 13 years ago:
Possibly. Might be a project for the future :D. Thanks :D!
How do i go about making a Player teleport to a different world if they stand on a certani part of a world?
By Basics, with 1 reply.
Replied to by davmac, almost 13 years ago:
All i need to know, is it possible to make it so when the Player touches a house then they will get send inside the house
Yes, that is possible. Are you sure that's all you need to know? :)
Java project
By 151mewtwo, with 8 replies.
Last reply by 151mewtwo, almost 13 years ago:
hey davmac, BigDecimal num1 = new BigDecimal("1000000000000000000000000000000000"); this code really worked... thanks.. and thanks also to all those who replied... appreciate it.. but i have one more thing, how to ask for user input for two numbers? and how to check if the user input is using decimals or just integers.. -thanks
Null Pointer exception
By darkmist255, with 11 replies.
Last reply by darkmist255, almost 13 years ago:
Ahhhhh! I get it, thanks :D.
The page you were looking for doesn't exist.
By hlm, with 3 replies.
Last reply by mjrb4, almost 13 years ago:
It's updated now (bear in mind though that that's only temporary, a nicer page is on its way!)
Actors doesn't show in Level2
By raniye, with 27 replies.
Last reply by davmac, almost 13 years ago:
Ok I tried to make my level2 a subclass but when I ran the game, it just jumped from subclass from 'wergeld' to subclass from 'World' again.. So it didn't make a difference...
Well, it works for me. Greenfoot won't magically change your code so if it moved in the diagram then you must have made it "extends World" again (instead of "extends wereld").
Lives in a crab scenario
By jenchan, with 1 reply.
Replied to by davmac, almost 13 years ago:
Please read
this
and post again.
What i have to do??
By TopInPut, with 6 replies.
Last reply by TopInPut, almost 13 years ago:
Ok:;D
How to make an Object let block the other Object?
By TopInPut, with 5 replies.
Last reply by TopInPut, almost 13 years ago:
Yeah, thanks.;) And yes they are german.;D
Music Notes API?
By dedoig213, with 4 replies.
Last reply by mjrb4, almost 13 years ago:
http://www.greenfoot.org/scenarios/574 The above might be helpful - it's mik's piano scenario but modified so it works using MIDI for the notes rather than sound files.
Robot
By roony_08euro, with 2 replies.
Last reply by DonaldDuck, almost 13 years ago:
Just to clarify, getObjectInRange returns a list of actors in the given radius. You need to import java.util.List and think about how to get a specific actor out of that list.
help on add object loop!
By easymal, with 5 replies.
Last reply by davmac, almost 13 years ago:
If you want the cars to appear at different times, you need to add them separately during separate invocations of the act() method. That is: - once the middle position is reached, add one car and return; - the following few times act() is called, do nothing, to allow the first car to move away - then add another car - then wait a few more act() cycles - then add the final car For this to work you need to introduce state into your actor - that is, instance variables which keep track of what is happening. You could for instance have a counters which keeps track of how many cars need to
How to create an integer variable for numOfLeaves() eaten
By chelle526, with 2 replies.
Last reply by chelle526, almost 13 years ago:
thanks
1020
1021
1022
1023
1024
1025
1026
X