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
Missing return statement?
By darkmist255, with 4 replies.
Last reply by darkmist255, about 14 years ago:
Thanks! I got it working! The first opponent is now finished, and the game engine is 90% complete. Now for some visible progress :D!
Actor teleporting
By darkmist255, with 1 reply.
Replied to by darkmist255, about 14 years ago:
Got it! I got rid of the direct link between distance and momentum. This is the working code:
Removing an object when it reaches the world end
By Wittwalsky, with 1 reply.
Replied to by davmac, about 14 years ago:
Please read
this
& post again.
Error:S
By TopInPut, with 4 replies.
Last reply by davmac, about 14 years ago:
Actually, it means that the parameters you are passing to the method are the wrong type(s), or that you have the wrong number of parameters. Check the documentation and make sure that you understand what you need to pass to it and that your code provides the correct parameters. (In your code, how many do you give? How many are required?) Similarly for line 11: Ball ball = (Ball) getOneIntersectingObject(this); What is the required parameter type? What are you actually passing? (check the
documentation
).
Just a quick question.
By darkmist255, with 1 reply.
Replied to by darkmist255, about 14 years ago:
Nevermind, just realised that I have my if's in an ascending order, so it would always execute the last one last. I just made them "else if" and it worked :D. One problem though, when I set volumeLevel to 50, there's no audio? Here's the relevant code: In "Spikes.class"
"Incompatible types" Whazhappaning?
By darkmist255, with 8 replies.
Last reply by Builderboy2005, about 14 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, about 14 years ago:
Thanks :D!
Just a thought, is this possible?
By darkmist255, with 2 replies.
Last reply by darkmist255, about 14 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, about 14 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, about 14 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, about 14 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, about 14 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, about 14 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, about 14 years ago:
Please read
this
and post again.
What i have to do??
By TopInPut, with 6 replies.
Last reply by TopInPut, about 14 years ago:
Ok:;D
1026
1027
1028
1029
1030
1031
1032
X