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
Bullet collision problem
By Tioma7, with 11 replies.
Last reply by Tioma7, over 10 years ago:
i solved that, had to add that if bullets hits enemy loop stops
asteroids Score Board
By taky123, with 25 replies.
Last reply by taky123, over 10 years ago:
OMG thanks it works your a life savior dude i dont know how to thank you :D
Cannot find Symbol - Method size()
By Balathasar, with 11 replies.
Last reply by GreenHouse, over 10 years ago:
Having a big world ( Very big )
By Jonche, with 1 reply.
Replied to by FlyingRabidUnicornPig, over 10 years ago:
There are several scrolling worlds on the site. Try out
danpost's Scrolling Super World
or
SPower's Scrolling World
. Or look for some others.
help
By KevinWelch2001, with 2 replies.
Last reply by KevinWelch2001, over 10 years ago:
thank you
nullPointer with removeObject :S
By JimmyFake, with 14 replies.
Last reply by JimmyFake, over 10 years ago:
Zamoht wrote...
I found this on a
stackoverflow thread
. Map is an interface. Create an instance of one the classes that implements it: Map<String, String> temp = new HashMap<String, String>(); temp.put(colName, data); Or, in Java 7: Map<String, String> temp = new HashMap<>(); temp.put(colName, data);
That's it. I overlooked the fact that Map is an inferface. Initializing it with the HashMap Implementation, lifts the nullpointer exception.
danpost wrote...
Try inserting before the
Getting a method to work
By winsticknova, with 5 replies.
Last reply by danpost, over 10 years ago:
The body you added to the method does not set the speed of the actor (it moves the actor down by the speed given). You need a statement that
sets
the
speed
of the actor (assigns the given value to the field that represents the speed of the actor)..
Passing Character Data through world
By Tavi, with 6 replies.
Last reply by danpost, over 10 years ago:
Work on one issue at a time. It is too easy to get confused when you try to work on more than one thing at a time. Compile often to prevent compounding errors. For now, it might be best to reduce it to a working state and build on it from there.
Top down shooter vertical screen scrolling.
By Tioma7, with 11 replies.
Last reply by Tioma7, over 10 years ago:
askgriff wrote...
But you should always start your game -- get the world set up, the variable declared, the graphics set, etc. Have you started looking through any of the "scrolling world" scenarios? There are some good ones.
I have seen a lot of scrolling scenarios and i dont want just copy them and paste i want to understand how its made, and i didnt get it :(
Someone know how to catch this?
By ddvink, with 2 replies.
Last reply by danpost, over 10 years ago:
The error occurs in 'checkFloor', but the cause of the error is probably found in your 'act' method (the order in which you call your methods. You probably have a method that removes the actor from the world before calling the 'checkFloor' method; hence, causing the error. You could probably add a line into your act before the call to 'checkFloor': <Code Omitted>
TicTacToe Game
By MontclairState, with 12 replies.
Last reply by MontclairState, over 10 years ago:
You are right davmac that works as well. Thanks you both for your input :D
Playing sounds outside of Greenfoot
By Kartoffelbrot, with 1 reply.
Replied to by Gevater_Tod4711, over 10 years ago:
The
Java Tutorials
are helpfull for this things. Especially
this one
.
add object when 2 rockets are eaten
By arnchi, with 3 replies.
Last reply by arnchi, over 10 years ago:
i think that is the problem is also weer private void but i have changed it but it stil not work
help when is use code remove object my world stops
By arnchi, with 2 replies.
Last reply by arnchi, over 10 years ago:
omg thnks you helped me so much
drawArc Method
By sametguzelgun, with 2 replies.
Last reply by sametguzelgun, over 10 years ago:
Thank you.
765
766
767
768
769
770
771
X