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
saving a parameter of a method of a class as a variable of another class?
By Newbie, with 3 replies.
Last reply by Newbie, almost 11 years ago:
Thank you very much indeed, it worked out exactly the way I wanted it to!
Problems with multiplayer
By fejfo, with 9 replies.
Last reply by lordhershey, almost 11 years ago:
I'm going to cough up a little sample listener and see if the client tries sending anything.
Randomly moving enemy problem
By Arakniode, with 2 replies.
Last reply by fejfo, almost 11 years ago:
this still won't work really well beacause the crab will move back and forth a lot code like this would be better : <Code Omitted>
What would be the code to get an object (class) to appear when the world has been changed?
By jalaw02, with 8 replies.
Last reply by jalaw02, almost 11 years ago:
Brilliant! Problem solved. Thanks!
Giving values for variables into a method
By Loled85, with 3 replies.
Last reply by Super_Hippo, almost 11 years ago:
Don't use the 'act' method for that then. Place the following into the constructor: <Code Omitted>
problem with Greenfoot.getRandomNumber(int,int)
By wookles, with 1 reply.
Replied to by Super_Hippo, almost 11 years ago:
What do you want to do with this line? <Code Omitted>
How do i increase movement speed?
By onlineragekiller, with 3 replies.
Last reply by Super_Hippo, almost 11 years ago:
With only this, the actor would be faster as long as it intersects with the power up, not after picking it up. (The power up is never removed there though.)
Illegal start of expression: private int
By jalaw02, with 2 replies.
Last reply by jalaw02, almost 11 years ago:
Thanks. Much appreciated!
what java codes do i used to get the numerator to be divisible by the denominator always
By divinity, with 5 replies.
Last reply by divinity, almost 11 years ago:
hi super_hippo I want to thank you very much for helping me out. i did what you suggested and I got it to work just the way ah want it to work. ah want to wish you ah merry christimas and a happy new year to you and yours.
Why wont it spawn a new Hamburger after the current one is gone
By Infurno, with 2 replies.
Last reply by danpost, almost 11 years ago:
If you want that the hamburger delay its appearance in the world, move the adding code outside the 'eatHamburger' method (maybe to an 'addHamburger' method) and add the condition that no hamburger be in the world: <Code Omitted>Chances are the hamburger will reappe
Accessing methods in different worlds
By ElectricPinnaple, with 1 reply.
Replied to by danpost, almost 11 years ago:
You can check which world the actor is in using the 'instanceof' keyword. For example: <Code Omitted>
Chase player
By quadtrio, with 6 replies.
Last reply by quadtrio, almost 11 years ago:
Thanks a lot
checking for edge of object
By davemib123, with 10 replies.
Last reply by davemib123, almost 11 years ago:
Makes sense I'll try that out :)
int[] cannot be converted to int
By divinity, with 3 replies.
Last reply by danpost, almost 11 years ago:
When creating arrays (such as in lines 34 through 38 above), you must give it how many elements it can hold. So, the item_num array should have an element slot for each item_num (the maximum number of different item numbers you will be using). You are, for some unknown reason, placing the name of the array where this int value should go. So, if you had ten different item numbers, then: <Code Omitted>would declare and create an array for ten int values.
How to link counter to hitting blocks
By malikdon, with 15 replies.
Last reply by malikdon, almost 11 years ago:
danpost wrote...
That explanation shows a lack of understanding in what is happening. If the Counter object is to be passed to the Mario object when the Mario object is created, then the Counter object must be created first. The first four lines above could be written as follows: <Code Omitted>
I believe what you and I are saying is the same thing, except what you said is more eloquently worded.
513
514
515
516
517
518
519
X