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
Beam Light Problems
By Laurence, with 36 replies.
Last reply by Super_Hippo, over 9 years ago:
You mean like this? Usually you can check out the Greenfoot API and find a method which you can use. <Code Omitted>
Shopping cart scenerio need explaining
By divinity, with 14 replies.
Last reply by divinity, over 9 years ago:
okay
How to turn an object 90 degrees?
By Laurence, with 1 reply.
Replied to by danpost, over 9 years ago:
Laurence wrote...
Some of my objects face one direction and I'd like it to simply just turn 90 degrees downward.
There is a
setRotation
method in the Actor class.
my health bar wont work :(
By heeyyyoooopatty, with 3 replies.
Last reply by danpost, over 9 years ago:
Super_Hippo wrote...
I don't really think that it makes sense that the Bloctopus has to hit the enemy and the healthbar to damage the enemy.
I could be mistaken, but I think the health bar is for the Bloctopus actor and not for the enemy (which would make a little more sense).
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.
443
444
445
446
447
448
449
X