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
Creating different objects randomly?
By m1chael, with 4 replies.
Last reply by Duta, almost 14 years ago:
By the way a replacement for: <Code Omitted>is:
Seting rotation
By prti, with 3 replies.
Last reply by prti, almost 14 years ago:
needed rotation of the path so I modified last 2 lines, and it works.. Tnx!
.jar file not working correctly...
By ImFerocious, with 4 replies.
Last reply by LegoDiego, almost 14 years ago:
I found that the problem is that we are calling GamePad.getNumGamePads() in the constructor of the world. Moving that call fixed our issues. I might go wake my son up to tell him the good news. He went to bed a bit sad earlier. :)
applet?
By Tom1802, with 1 reply.
Replied to by mjrb4, almost 14 years ago:
Yup, to run Greenfoot you'll need the JDK which you can download from
here
.
Mouse Right Click
By DMCGames, with 8 replies.
Last reply by davmac, almost 14 years ago:
In the world class, you could use 'getObjects(null).get(Greenfoot.getRandomNumber(numberOfObjects() - 1)).setLocation(mouse.getX(), mouse.getY());', but you will have to 'import java.util.List;' to use the method 'getObjects(class)' since it returns a List object.
Actually, if you chain the method calls (as you do here) there is no need to import the List interface. You only need to import List if you refer to it directly, eg declare a variable of type List.
Cannot find symbol - variable direction ?
By TopInPut, with 3 replies.
Last reply by TopInPut, almost 14 years ago:
Thx.;) That works.:)
Where's the Mistake?
By TopInPut, with 5 replies.
Last reply by TopInPut, almost 14 years ago:
I know.;) Just wrote it like that.;)
Why won't the net go up??
By b321234, with 7 replies.
Last reply by Duta, almost 14 years ago:
Yeah, @danpost that's what I was talking about
Ideas for the future
By kiarocks, with 10 replies.
Last reply by DonaldDuck, almost 14 years ago:
kiarocks wrote...
I think it would be cool to visually see it.
His PhD? ;)
mjrb4 wrote...
Yes - but bear in mind I started said PhD a few months ago. So it'll probably be 3 years or so before it comes to fruition ;)
Best of luck!
Just curiosity: What is the purpose of abstract classes/methods?
By darkmist255, with 2 replies.
Last reply by darkmist255, almost 14 years ago:
Whoa, I actually was closer than I thought :D! Thanks!
Why won't my game drag cards?
By kiarocks, with 2 replies.
Last reply by kiarocks, almost 14 years ago:
Ok, i will fix that, but i figured this problem out: i told it
not
to check to drag if it
was
dragging. Whoops!!!
Cannot find symbol- constructor world
By mmarboe, with 2 replies.
Last reply by mmarboe, almost 14 years ago:
Thank you! All fixed! The help is very much appreciated!
missing method body or declare abstract
By mmarboe, with 2 replies.
Last reply by mmarboe, almost 14 years ago:
thank you! got it fixed!
Possible site bug
By AwesomeNameGuy, with 2 replies.
Last reply by AwesomeNameGuy, almost 14 years ago:
Well, I didn't consider that.. because of course the possibility of someone unlikeing one of my masterful scenarios is so extremely remote of course..but I guess anythings possible!
Collision
By DMCGames, with 10 replies.
Last reply by DonaldDuck, almost 14 years ago:
Copy AwesomeNameGuys checkForCollisions method but modify it to look below the object rather than beside it. Change the blockedOnRight to an onGround boolean. Now, wherever you increase the gravity (y speed), say if(!onGround) before. In the future, this may be an easier way to deal with this.
1018
1019
1020
1021
1022
1023
1024
X