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
Kinect Programming for Jump
By IamPicker, with no replies.
Hello We are working on a game where user needs to jump to pass over a Monster . We searched all over the internet to get a hint on how to recognize a jump in Kinect,but our efforts went in vain. It would be great if someone here could help us on this. Thanks in advance.
New Characteristic in new level
By pr2alede, with 2 replies.
Last reply by pr2alede, almost 11 years ago:
Great that has worked
Tricky situation... Get the nearest object
By Jonche, with 11 replies.
Last reply by danpost, almost 11 years ago:
Remove the 'static' keyword from <Code Omitted>Each monster will then have a healthPoints field of its own.
internatinal karate +
By wa7sh89, with no replies.
hello guys ,, iam working on a project that simulates this game which an arcade game from the 90's http://i42.tinypic.com/24pe7vp.jpg but iam stuck in somewhere ,, first how to make the white clothed guy ( Ryu ) to move randomly horizantally i made some code for that but its not working as i wanted it to do ,, second i want him as well ,, to play automatically ,, to hit ( ken ) .. i wonder if setImage method and delay method can do that with an array ,, ? can some suggest a code for me ,, last thing if iam going to apply somthing like a life bar ,, it should be decreased with every hit the player gets from the other player ,, can ( isTouching method ) and ( setImage ) method with an array can help doing that ? i upload it the game as .rar file on an external site as greenfoot refused to upload it since its too large !! and i didnt know how to make a jar file !! please guys feel free to comment me and correct me as much as u can to get this issue done ! coz its only these three proples ,, otherwise the game is done for me ,, as i know wt should be done :) regards !! here is the link http://speedy.sh/KpnFW/project.rar
the code
Unreachable statements
By jsheehan, with 6 replies.
Last reply by davmac, almost 11 years ago:
Yes, I already gave you the solution to that in my first post:
The 'if' statement always returns, so the next line can't possibly be reached. The return statement stops any further code in that method from running. As there is a return statement in every branch of the if-statement, it must always return and so the next line - "List obstacles = ..." - can't possibly be reached. It looks to me as if you should remove the 'else { return true; }' part completely.
World background keeps changing back
By mwishum, with 6 replies.
Last reply by danpost, almost 11 years ago:
As long as a reference is kept to any already created world, you can return to it by using the reference (without using the 'new' keyword, which would create a world in its initial state).
Need help with collecting a key to unlock a door for my game
By alicija, with 11 replies.
Last reply by alicija, almost 11 years ago:
Sorry, I didn't take notice of line 28. I've got it all sorted now! Thank you heaps! :)
Resolution
By Kartoffelbrot, with 1 reply.
Replied to by bourne, almost 11 years ago:
Maybe something like this is what you want? : http://stackoverflow.com/questions/10123735/get-effective-screen-size-from-java
More RAM for Greenfoot
By Kartoffelbrot, with 13 replies.
Last reply by Kartoffelbrot, almost 11 years ago:
Thanks. I noticed, that the size of the actors influences the need of RAM, too.
gamemaker22
By shahparacha, with no replies.
I need help to make the car racing game can any one help me
Asteroids Game? GruverChat
By ksksks, with 3 replies.
Last reply by shahparacha, almost 11 years ago:
I will join u and help u in score counter
Bullet image left
By pr2alede, with 2 replies.
Last reply by danpost, almost 11 years ago:
I noticed that 'direction' is not used anywhere in the code (it is a parameter in one of the constructors which sets an instance field to its value; but that is it). No matter what value is given it, there will be no change in the behavior of the bullet. The movement of the bullet objects is strictly upward because of the way the 'setLocation' statement on line 31 is used.
Declaring variables
By pr2alede, with 3 replies.
Last reply by pr2alede, almost 11 years ago:
Thankyou
Error When Sharing Scenario
By wybrasr, with 1 reply.
Replied to by davmac, almost 11 years ago:
Your scenario runs fine for me. Try clearing your Java applet cache and browser cache.
Need Urgent Help With Putting A Duration on Powerups.
By cheshire, with 1 reply.
Replied to by cheshire, almost 11 years ago:
Nevermind, I worked it out.
760
761
762
763
764
765
766
X