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
I can't slow down my enemies animation.
By heeyyyoooopatty, with 5 replies.
Last reply by heeyyyoooopatty, over 9 years ago:
Super_Hippo wrote...
<Code Omitted>
OMG THANK YOU SO MUCH
waiting method
By NIRO17, with 1 reply.
Replied to by danpost, over 9 years ago:
NIRO17 wrote...
I am developing a scenario with two robots movements.i want to wait one robot until other robot finish it's opertion. how can i wait it
You could do it by adding boolean fields in the actor classes to indicate their active states; but is seems to me that this is something that the World object should deal with. There are three phases here (a) the first robot performs its task (b) the second robot performs its task and (c) both have completed there tasks. Therefore and int field to indicate which phase is currently being executed would be in order:
My character flying instead of jumping
By Boboy18, with 7 replies.
Last reply by Super_Hippo, over 9 years ago:
You can create an Actor subclass called 'Button', add these buttons to the menu world and pass a variable to them. Then you check if they were clicked and set the world based on the variable then. Or you let the user press a number and set the world based on that.
Add an Object in the World ?
By BrySch, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
If you have an Actor subclass named 'Rocket', the line should read: <Code Omitted>
tell me what I am missing here, practicing but need some help
By divinity, with 15 replies.
Last reply by danpost, over 9 years ago:
divinity wrote...
do I n to remove this: Loan loan = new Loan()
No. But if you want anything to print to the terminal, the 'details' method needs to be called. After that line, you could then add this: <Code Omitted>to print out the field values. I only show this as an example of having the values printed to the terminal -- but, I am quite sure you are wanting to do quite a bit more than that.
How to unload worlds?
By Laurence, with 28 replies.
Last reply by danpost, over 9 years ago:
Laurence wrote...
Since it seems I can only input one command per timer if statement (I tried putting multiple and it tears apart the whole neat sequence),
A switch statement could also be used here: <Code Omitted>
Not launching greenfoot
By mcourtney, with 1 reply.
Replied to by davmac, over 9 years ago:
Hi, I would start by checking the full text of the error message - it probably says more than just "failed to launch". Does it give any indication of what the problem is or what to do?
How can I move my actor to the right with just sound
By eddy0102, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
It will look like this. You can change the numbers to your needs. <Code Omitted>
Invincibility for 5 seconds
By apcandre, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
<Code Omitted>
Healthbar problem
By Dudimus, with 17 replies.
Last reply by Dudimus, over 9 years ago:
Oh, it finally worked. Thank you so much.
Is there a way I can make my main character be pushed back whenever the "Zombies" hit it (Which would work in any direction)?
By Dudimus, with 4 replies.
Last reply by Dudimus, over 9 years ago:
Oh wait, it works! Thank so much.
removeTouching method
By SATH8888, with 2 replies.
Last reply by danpost, over 9 years ago:
SATH8888 wrote...
i a trying to use simple methods to remove an object when it is touched by another. i have tried isTouching and removeTouching but it gives me incompatible types error. can anyone tell me the right way to use this method??? thanks in advance.
In a simple variable assignment line like the following: <Code Omitted>The return type of 'methodName', or any literal, or the result of any expression evaluated on the right side, must be of type 'VarType'. If the method returns a boolean value, which the method 'isTouching' does, then that value
Change anchor point of Actor
By Genora51, with 7 replies.
Last reply by danpost, over 9 years ago:
Genora51 wrote...
Ps : to Danpost - I don't think I have seen a single forum post that you haven't replied to. Thank you so much for the help you have given on so many occasions to just about everyone. (Are you one of the developers of greenfoot?)
You might want to see
this discussion.
getWorld(); not found?
By Laurence, with 1 reply.
Replied to by Laurence, over 9 years ago:
Nevermind, I resolved it, found out that worlds already had world-related methods already at the disposable.
getMicLevel() not working
By proboardslol, with 6 replies.
Last reply by amjad, over 9 years ago:
Could you please send your debug-log and the description of how you get the error to us, as described in: http://www.greenfoot.org/support ?
443
444
445
446
447
448
449
X