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
Switching image then removing.
By Mikeson, with 1 reply.
Replied to by danpost, about 13 years ago:
The reason the explode object does not remove is because you are removing 'this' from the world first. Now there is no 'world' referenced. Switch the last two lines of code and the explode should remove. As far as fraction of objects, the only ways I can think of are (1) if you build the object in parts, or (2) if you change the image to reflect the remo val at given points.
Needs help, pretty new here.
By andylcox, with 2 replies.
Last reply by mjrb4, about 13 years ago:
We'd need to see your code for certain - but the above advice is a common cause! If you have declared a populate() method then check it's the same case (Java is case sensitive) and check your curly brackets are all in the right place which can also sometimes cause that error.
Just wondering
By Duta, with 9 replies.
Last reply by toytttttt, about 13 years ago:
Yep, duta is right
Point in the right direction
By Mikeson, with 2 replies.
Last reply by davmac, about 13 years ago:
Also check out the
Greenfoot videos
(especially the ones on shooting).
Moving an object to another object
By Oneshot, with 16 replies.
Last reply by Oneshot, about 13 years ago:
Thanks to all, now it works fine ... and i understand it :D
STARS
By theDoctor, with 6 replies.
Last reply by theDoctor, about 13 years ago:
Thanks so much davmac. You've really helped here!
can not find symbol/methods
By craigv, with 2 replies.
Last reply by craigv, about 13 years ago:
awesome, thanks buddy. i was watching a tutorial on this topic (platform games) and had the same code, which in the tutorial, the code compiled with no errors. very strange! anyways, thanks!
Creating different objects randomly?
By m1chael, with 4 replies.
Last reply by Duta, about 13 years ago:
By the way a replacement for: <Code Omitted>is:
Seting rotation
By prti, with 3 replies.
Last reply by prti, about 13 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, about 13 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, about 13 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, about 13 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, about 13 years ago:
Thx.;) That works.:)
Where's the Mistake?
By TopInPut, with 5 replies.
Last reply by TopInPut, about 13 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, about 13 years ago:
Yeah, @danpost that's what I was talking about
1014
1015
1016
1017
1018
1019
1020
X