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
Accessing an actor's boolean in the world
By Iactuallyhavegreenfeet, with 1 reply.
Replied to by Spock47, almost 2 years ago:
Change line <Code Omitted> to <Code Omitted>
My Code my wont Compile
By ZagreusCat, with 1 reply.
Replied to by Super_Hippo, almost 2 years ago:
For a start, put line 4 in a { } block and put line 6 into the same block without the condition.
Wie kann ich ein boolean wert von einer anderen classe in eine if schleife zur anderen klasse machen?
By d1cM4c, with 13 replies.
Last reply by Spock47, almost 2 years ago:
Ganz genau. Am besten einfach ans Ende der Methode ein (unbedingtes) "return false;" setzen so wie es im Eröffnungspost war: <Code Omitted>
Can somebody please send me the solutions to the turtle recursion?
By lecaycay, with no replies.
Hello, I need to programm a code, where a turtle creates object. For that i should use the recursion and now I am asking If anybody has the code on the creation of a snowflake and/or koch curve? Thanks in advance.
How to make my character not disappear when using static variables
By Quinnterruption, with 5 replies.
Last reply by danpost, almost 2 years ago:
Quinnterruption wrote...
I dont want the character to move thats why have i that line tthere.
The actor focused on (the one that stays center-screen) is an actor that moves in your world. The code in your world class (that which controls the scrolling) tells the
Scroller
object to scroll with amounts based upon that actors movements in the world, or by how far it has moved from the center. The scrolling will put the actor back in the center and the actor will not appear to actually move, though moving in the scrolling world.
I read the scrolling tutorial and messed wit
how can I pick up items and throw them away in the game
By alex45254, with 4 replies.
Last reply by danpost, almost 2 years ago:
alex45254 wrote...
is it be like that? public void pickup() { if (isTouching(duck.class)) { Actor actor = getOneIntersectingObject(duck.class); } }
Well, the actor would not want to pick one up if it was already holding one. So: <Code Omitted>
how to place a object down in order as it reads a text file
By Ilovemarcus, with 2 replies.
Last reply by Spock47, almost 2 years ago:
After danpost already did all the hard work and presented a good solution, I just want to add one small detail: Since JDK7, you can use a String value directly with switch, e.g. <Code Omitted>
How to reference non-static getRotation() in static Context.
By Riovanni, with 2 replies.
Last reply by Riovanni, almost 2 years ago:
oh okay. thanks
How can an actor stop his own act()?
By leuveg, with 1 reply.
Replied to by danpost, almost 2 years ago:
leuveg wrote...
I tryed
Greenfoot.stop()
in fahre() but not work. And now?
The code in the
else
part starting at line 13 will only execute if BOTH the
bodenVorhanden
AND the
Ziel
objects are touching this
Auto
object. That means that the
bodenVorhanden
and
Ziel
objects must overlap (intersect each other). Is that the way you have it?
Converting Greenfoot software to Steam
By Jestry, with no replies.
Is it possible to emulate Greenfoot games on steam? Or, because the purpose of this Engine is mainly an educational one, there still wasn't attempted to do so?
Do space games using addforce add too much when combining thrusters?
By robertjulia, with 2 replies.
Last reply by Crickblack124, about 2 years ago:
robertjulia wrote...
I'm playing a few space games that I do actually have the unity project for, since they were either publicly available or given to me. I have looked in the scripts for acceleration and the games just use unity's mechanism to add force to rigid-bodies. basically, they both feature 6axis manual thrust, so that all inputs are certainly from me. First, correct me if I'm wrong, but if you use two thrusters that are 90 degrees out in angle, then the resulting vector should be the result of the Pythagorean theorem yes? So, you add force from one thruster, a , then from another t
Why my game is not working
By Greenfoot2022, with no replies.
Why my game is not working when I upload it in website. It is giving me error
How do I set the enemyHealth counter to not go below zero?
By Prannn, with 1 reply.
Replied to by danpost, about 2 years ago:
Prannn wrote...
How do I set the enemyHealth counter to not go below zero?
Putting the following line after line 39 in
EnemyPlane
class might help: <Code Omitted>
Greenfoot cannot find png file
By BigTrae, with 1 reply.
Replied to by Prannn, about 2 years ago:
may I see the code?
project.greenfoot not longer working
By TLHS_GAME_ACADEMY, with 1 reply.
Replied to by TLHS_GAME_ACADEMY, about 2 years ago:
Found a solution. project.greenfoot still does not work, but I can load an existing project from Scenario/Open by clicking on the folder instead of project.greenfoot inside the folder.
25
26
27
28
29
30
31
X