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
Missing return statement...
By Ralfonso1, with 2 replies.
Last reply by Ralfonso1, over 9 years ago:
i love you man thank you !!!!!!!!!!
How can I set a Endscreenimage when my actor gets destroyed by a bomb?
By Laserbrot, with 2 replies.
Last reply by danpost, over 9 years ago:
You could also write it like this in the act method: <Code Omitted>and add the following method to the World subclass:
How I can put a GIF in my Project?
By Kristiylchen, with 1 reply.
Replied to by danpost, over 9 years ago:
My Animation class can be made to run exactly one cycle of images just by setting a cycle count field. My
GifImage vs Animation
scenario contains both the Animation class as well as the GifImage class provided by greenfoot and shows the various differences between them. Also, my
Animation Support Class
scenario demos a single cycle usage.
Well, I see that it does 6 cycles (which looks like one visually) because the pattern repeats 6 times.
How to move the actor up and down
By GreenfootNewbie2000, with 9 replies.
Last reply by danpost, over 9 years ago:
After moving, check the changed coordinate by comparing it to whatever limit you set for the direction moved. If passed the limit, move the actor back to that limit (using 'setLocation'). For example, to limit movement to the right so the actor does not go off the visible world: <Code Omitted>You can change the '1's to a larger value to put more of the actor in the world. Using 'getImage().getWidth()/2' instead of the '1's will place the actor at the edge and totally visible (no part
PROBLEM-JnR-Player drops through objekts
By Jonah, with 4 replies.
Last reply by Jonah, over 9 years ago:
thank you very much. I now have an own idea:
Logical Error Problem
By ET78759, with 9 replies.
Last reply by ET78759, over 9 years ago:
Thanks! It works now.
Help
By jeff, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
Show the act method of the class.
Help me Please
By lorena1999, with 2 replies.
Last reply by danpost, over 9 years ago:
First thing is that it is not the class that has coordinates -- it is the objects of the class (that are subclasses of Actor) that have coordinates. That being said, you need to acquire a reference to the Om object in your world from within the Rac class. If there is always an Om object in the world, you can use: <Code Omitted>to acquire that reference (in 'om'). However, if it may be possible that there is no Om object in the world, you will need to preface that with the following:
Automatic Javascript conversion of Scenarios
By davmac, with 10 replies.
Last reply by davmac, over 9 years ago:
greatjack wrote...
Wow, incredible. Which transpiler are you using to generate the javascript?
It is based on
TeaVM
, which also provides a substantial portion of the Java API . The Greenfoot API is rewritten over the TeaVM APIs for HTML DOM manipulation etc.
Don't understand why this doesn't work
By Kevroa, with 4 replies.
Last reply by Kevroa, over 9 years ago:
Yes, I did. Since this post though, I've restarted my computer and everything seems to work now... I dont really know what happened but hey, if it works I'm fine with it lol.
Simulation Speed
By Yehuda, with no replies.
In a scenario to get the simulation speed I have to do the following: <Code Omitted>Why can't there just be a method in class Greenfoot for retrieving the simulation/execution speed?
Help with Jumping in my game
By TheAwesomePuppy404, with 24 replies.
Last reply by danpost, over 9 years ago:
For those interested, the summarized jumping tutorial is located
here
.
So I am trying to make it so when the fireball class intersects with the spider class once, the spider class dies
By Sirpancakeking, with 3 replies.
Last reply by Yehuda, over 9 years ago:
In class Main you can put the following in the act method. <Code Omitted>
Need help creating menu
By Kevroa, with 3 replies.
Last reply by danpost, over 9 years ago:
Kevroa wrote...
if you could tell me how to move the selector to a different location that would be great.
Do you want the selector at a different location initially or do you want to be able to drag it with the mouse while the program is running? If you could explain why you would want to do this, it would help.
Question about the crab
By HansR, with 8 replies.
Last reply by Super_Hippo, over 9 years ago:
Click on Edit → Import and choose the Animal class.
335
336
337
338
339
340
341
X