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
Wondering about efficiency.
By avatarcolin, with 4 replies.
Last reply by avatarcolin, over 12 years ago:
Oh! Thanks, didn't realize it was.
Having some problems with removeObject.
By Than4tos, with 8 replies.
Last reply by Than4tos, over 12 years ago:
Thank's alot m8
seems to be working as i wanted it.
Background music for multiple levels
By Rubric94, with 7 replies.
Last reply by Rubric94, over 12 years ago:
problem with file itself, will fix
exercise 6.1
By Jaimie, with 11 replies.
Last reply by danpost, over 12 years ago:
You will probably need to use 'new java.util.Vector(2.2, 3.1)' (if you are using the java.util.Vector class); or, 'new Vector(2.2, 3.1)' if you are using your own Vector class.
Can I have some help explaining this?
By 327458, with 1 reply.
Replied to by danpost, over 12 years ago:
Let us break it down: We are using a for loop to iterates through a collection of object. This collection is created by calling 'getWorld().getObjects(Pins.class)'. 'getWorld()' (Actor class method) returns the world that the actor, referred to by 'this', is in. 'getObjects' (World class method) returns a list of objects of the specified class (Pins.class) Each iteration will set 'obj' to a different Pins object that is in the world. The 'obj' variable holds a reference to an Object type object. '(Pins) obj' on line 3 casts the referenced object as a type of Pins object. It is then ass
Help with mouse info
By bizzard, with 16 replies.
Last reply by danpost, over 12 years ago:
'ba.ll.getImage().getWidth()'. Outside the Ball class, 'ball' will have to be assigned a Ball object; inside the ball class, you can just drop the 'ball.' part.
power ups?
By programmer22, with 127 replies.
Last reply by GamesGrinder1998, over 12 years ago:
danpost wrote...
Which class of Actor is this enemy that isn't respawning in the players 1 box ? and, is it not spawning at all or spawning in the players 2 box?
it's spawning in the players 2 box when my starfighter 2 shoots an enemy but when my starfighter1 shoots it, it doesn't respawn
Text with background
By Unicus, with 2 replies.
Last reply by Unicus, over 12 years ago:
Thank you very much! (again)
How does the move() Greenfoot method calculate where to move the player?
By Entity1037, with 3 replies.
Last reply by Entity1037, over 12 years ago:
Ah, I totally forgot about trigonometry! Thank you!
Bullet is deleting itself before an enemy can detect it
By mcGreen, with 13 replies.
Last reply by mcGreen, over 12 years ago:
That did the trick! Indeed there was a tag on it. Somehow its now too large to upload it. Edit: Tried again and it suddenly works... strange. Anyway, only thing I need now are enemies who can run around from left to right.. I would like them to lets say, walk 3m in one direction, then stop, and then walk 3m in the other direction. Other than that the game is pretty much finished Another question: Why do the Sprites glitch like that?
My final project in greenfoot(records)
By Apifobia, with 1 reply.
Replied to by Apifobia, over 12 years ago:
[Disallowed URL] here a class diagram of the project i believe it will be very different when i implement it in code, plus im still not familiar with greenfoot to see if it is actually effective but its the advance i have
Getkey fail
By kasperk22, with 4 replies.
Last reply by danpost, over 12 years ago:
No. That is not what I wrote. Your line 28 does not look like my line 4; and your line 24 does not look like my line 5. EDIT: posted before seeing your final post.
can't find mover class (support classes)
By greenprogrammer, with 11 replies.
Last reply by greenprogrammer, over 12 years ago:
why there is no video tutorials on Vector and SmoothMover, when this is an important topic. Everyone talking about easy stuff. I am not being rude just frustrated.
Create the game: Fall down
By AHarbo, with 3 replies.
Last reply by Fws, over 12 years ago:
danpost wrote...
As I am not familiar with the Fall Down game, all I can say is to create a basic world for you canvas and game states and behaviors by way of fields and methods, create actor classes for the different types of characters, guis, and interactive objects and give each their states and behaviors in the same way. Once you have done what you can with that, then if you have any specific problems, start a discussion.
Hey danpost First of all, this is the game http://www.albinoblacksheep.com/games/falldown We have already made a world with bars and all that. But we are
I am working on my project PoolTable game and can't figure out how to apply these things in my Work can please Help!!!!
By bizzard, with 6 replies.
Last reply by bizzard, over 12 years ago:
*******got it
697
698
699
700
701
702
703
X