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
PROBLEM-JnR-Player drops through objekts
By Jonah, with 4 replies.
Last reply by Jonah, about 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, about 9 years ago:
Thanks! It works now.
Help
By jeff, with 3 replies.
Last reply by Super_Hippo, about 9 years ago:
Show the act method of the class.
Help me Please
By lorena1999, with 2 replies.
Last reply by danpost, about 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, about 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, about 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, about 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, about 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, about 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, about 9 years ago:
Click on Edit → Import and choose the Animal class.
click (part two)
By Venbha, with 10 replies.
Last reply by Venbha, about 9 years ago:
oh i did one thing wrong let me correct it...
i reaaly- ...
Nothing.
I'm trying to check in my Aang class if the Fireball class is not touching the Aang class
By Sirpancakeking, with 9 replies.
Last reply by danpost, about 9 years ago:
Remove everything in the Fireball class given above except for line 3. In the main class separate the movement code from the shooting code. Post the entire main class code for review when done.
Using method from subclass in superclass
By Kevroa, with 3 replies.
Last reply by danpost, about 9 years ago:
Kevroa wrote...
Oh wow, simply fix haha.. Now that it's fixed, how would I actually go about using a method from a subclass? Might be useful later.
You simply cannot. At least, not without first declaring the method in the superclass or one of its superclasses. The 'act' method of the Actor class is a prime example of this. In the Actor class, you have something like this: <Code Omitted>an act method without any code to implement -- which is called during an act step (or when manually executed) by code within the greenfoot framework. By including an act method
uploading images in posts
By Talrasha, with 2 replies.
Last reply by danpost, about 9 years ago:
Two different sites are mentioned in
this post
of a different discussion thread.
335
336
337
338
339
340
341
X