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
NullPointerException can’t find problem
By Victor0409, with 3 replies.
Last reply by davmac, over 10 years ago:
Also, this looks wrong: <Code Omitted> Why are you creating a
new
TankTurret? Shouldn't it just be: <Code Omitted>
how to add object when hovering over actor??
By 0868626, with 2 replies.
Last reply by 0868626, over 10 years ago:
thanks man it works now.
Error problem
By [][][][][], with no replies.
<Code Omitted> java.lang.ClassCastException: java.util.ArrayList cannot be cast to Wall at Main.act(Main.java:30) at greenfoot.core.Simulation.actActor(Simulation.java:568) at greenfoot.core.Simulation.runOneLoop(Simulation.java:526) at greenfoot.core.Simulation.runContent(Simulation.java:215) at greenfoot.core.Simulation.run(Simulation.java:205) java.lang.NullPointerException at Main.act(Main.java:38) at greenfoot.core.Simulation.actActor(Simulation.java:568) at greenfoot.core.Simulation.runOneLoop(Simulation.java:526) at greenfoot.core.Simulation.runContent(Simulation.java:215) at greenfoot.core.Simulation.run(Simulation.java:205) this is the error ^^^ help if you can thank you. :D
How to make a scorecounter and counting score?
By Stormrage, with 6 replies.
Last reply by Stormrage, over 10 years ago:
Thank:) fixed
How can i get people removed that create lookalike accounts?
By UNDEAD_DC, with 5 replies.
Last reply by davmac, over 10 years ago:
Ok, he's gone.
How to "pick up", "move" and "drop" other objects
By FoXX, with 4 replies.
Last reply by 0868626, over 10 years ago:
g
Is the Greenfoot text book a necessity to learn how to do this?
By nickvcg, with 1 reply.
Replied to by davmac, over 10 years ago:
You don't strictly speaking need the book, but it will help you to understand the fundamentals. You could use another Java book also, or try to find a comprehensive tutorial online.
but say I wanted to code something for java, could I just code in the same style I learned to by using Greenfoot?
You don't code something
for
Java, you code
in
Java - Java is the programming language. In Greenfoot you write programs in Java. You can use Java outside Greenfoot as well (but the Greenfoot specific API, such as the World and Actor classes, won't be available).
Help!! How to shoot bullet in every direction
By Stormrage, with 3 replies.
Last reply by Stormrage, over 10 years ago:
Thanks:) Sorry for the late. First time using this website still don`t know how to using it yet.
Running BASIC inside a program
By tartags11, with 4 replies.
Last reply by tartags11, over 10 years ago:
Alright! Thanks!!
Need help on making "Heatseeker" missile
By Sphere35, with 3 replies.
Last reply by RUMMAKER, over 10 years ago:
this question is confusing... what do you mean you don't have a "connection" between them?
Finishing up my zombie game
By jubyfollower, with no replies.
I've done a lot to get close to finish my z game, but i want to have endless waves of zombies until my hero dies, but i don't know how to do that or how exactly how to start the code. any help?
HOLY GUACAMOLE MY ISU IS DUE SOON
By Conrox27, with 1 reply.
Replied to by danpost, over 10 years ago:
You need to create a class for whatever it is that is being shot (bullet, missile, light-beam, torpedo, phaser, whatever). Add the code for what it does into the class. Then have your ships create them when whatever condition you set becomes true. After you attempt to accomplish this, if you have specific problems, post back.
Racing game
By MoizRashid, with 1 reply.
Replied to by Conrox27, over 10 years ago:
well i have been having the same problem so i cantr help
Moving from the left to right and then back?
By GreenAnthony, with 2 replies.
Last reply by danpost, over 10 years ago:
I would use a direction field set to 1 for right, and whose alternate value is -1 for left: <Code Omitted>In pseudo-code, this becomes 'if (edge moving toward is close) then changeDirection; move;' or 'if ((moving left and left edge is close) or (moving righ
I need help on a platform game
By gonzo, with 2 replies.
Last reply by danpost, over 10 years ago:
For the floor to interact with your character easily, it should be of an Actor subclass. The Actor class has multiple collision detection methods that can be utilized to control the position of your character. The is also a multitude number of ways to create the image of the floor that you will set as the image of that actor.
728
729
730
731
732
733
734
X