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
Applet on Website; saving variables in mysql
By shoro2, with 1 reply.
Replied to by Gevater_Tod4711, over 11 years ago:
I think the
java.sql Library
will be helpfull. But I also don't know exactly how to do it. You should try to find a tutorial using google.
How to get the object location(x,y)
By zuyi53, with 1 reply.
Replied to by davmac, over 11 years ago:
Well, firstly, objects don't really have names. Also, getObjectsInRange returns a list of objects, not just an object. It's probably best if you post what code you have, then we can help you to make it work.
How do i end the game ?
By Nz-Tank, with 17 replies.
Last reply by Nz-Tank, over 11 years ago:
AHA! it worked! thank you so much, you just helped me on a 150 point project that wouldve lost some points without an end. Thank you so much i appreciate the help here, i really do
Why won't this work?
By henrYoda, with 5 replies.
Last reply by MatheMagician, over 11 years ago:
You're welcome!
Could someone please post the coding to stop the actors from entering into the walls?
By Blakehammond, with 1 reply.
Replied to by danpost, over 11 years ago:
<Code Omitted>
need help with updating a score board
By sophia8123, with 2 replies.
Last reply by danpost, over 11 years ago:
Line 58 should probably be: <Code Omitted>And I would have to assume that the 'updteStatus' method is declared with <Code Omitted>and that both 'score' and 'lives' are declared 'static' as well. If you are not using static methods and fields, then you need to get a reference to the statusboard object that you had created. Use <Code Omitted>
Jumping issues :(
By Draymothisk, with 5 replies.
Last reply by danpost, over 11 years ago:
I am not sure why you have two seperate conditional checks to set 'canJump'. Maybe better would be <Code Omitted>
Holding down a key
By -nic-, with 5 replies.
Last reply by Game/maniac, over 11 years ago:
Your welcome
Boolean
By Joorror, with 3 replies.
Last reply by Gevater_Tod4711, over 11 years ago:
to just check you need to use the method getOneObjectAtOffset. I think the use of a parameter would be good in this case:
closing an image
By Abdi, with 7 replies.
Last reply by danpost, over 11 years ago:
I am not too sure that you want it to be a subclass of mainmenu or just a subclass of Actor. Anyway, to add an actor into the world, use the World class method 'addObject'.
What coding is required to stop the player entering through the walls?
By Blakehammond, with 6 replies.
Last reply by danpost, over 11 years ago:
If your walls are at least 4 pixels wide then you should be able to detect when you came upon one. After the 'checkKeys' call in the act method, add a 'checkWalls' method. Create the new 'checkWalls' method checking for intersecting walls (one check for each type of wall). If either wall is present, move the character back to the location it started at. You will have to add fields to hold the initial location and set them at the beginning of the act method.
Problem with getWidth()
By sopi, with 12 replies.
Last reply by davmac, over 11 years ago:
But maybe someone could explain me why I always get a error by using the getWidth method.
getWidth used to be an Actor method in earlier versions of Greenfoot, but in recent versions it is not. You have to call getImage().getWidth() (or equivalent) instead.
Upgrade screen between rounds
By GreenGoo, with 1 reply.
Replied to by danpost, over 11 years ago:
Since each world will know which world to proceed to next (after the between screen is shown), you would want to create the new game world before calling the between screen world; pass it to the between screen world so it can go to that world when the between screen is done showing. If you had, let us say, 'Level1' and 'Level2' as game worlds and 'Intermission' as the between world, then:
Adding a message in the Breakout Scenario.
By ddcook82, with 7 replies.
Last reply by danpost, over 11 years ago:
It is done basically the same way as when you create the message manually. <Code Omitted>This creates the object and holds it in a field called 'msg'; now you just need to add 'msg' into the world where you want it.
Error with a scrolling world.
By steved, with 9 replies.
Last reply by bourne, over 11 years ago:
No problem.
865
866
867
868
869
870
871
X