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
Answer2
By Venbha, with no replies.
Hello its me again this is one more code <Code Omitted>ok now it will point and move. or else if you want to make it move when clicked in background, see
Here.
Counter getValue
By Venbha, with 4 replies.
Last reply by Super_Hippo, over 8 years ago:
If you are using the newest Greenfoot version, then there is greenfoot.Color which replaces java.awt.Color. Anyways, I didn't only write this last line.
Answer to point mouse
By Venbha, with no replies.
This is a code to make it move toward where we click in the background. <Code Omitted>OK this is for helping.
thx
SavingAccount is not abstract and does not override abstract method withdraw(double) in Accounts ----
By divinity, with 1 reply.
Replied to by danpost, over 8 years ago:
You just need to add the two methods: <Code Omitted>into the two subclasses (SavingAccount and CheckingAccount) with their appropriate codes (as per lines 27 and 28 of the Account class).
Question about Kolling - Greenfoot, ch. 4, 4.5 and 4.6
By HansR, with 1 reply.
Replied to by danpost, over 8 years ago:
HansR wrote...
Why not at once: "private GreenfootImage crab.png" ?
What you meant here was -- why not: <Code Omitted>
Why is this split up in two stages?
Probably because of what the example portrays. Oftentimes, beginners try to assign the variable with something like the following incorrect code as the second stage: <Code Omitted>This does not set the new image to the field declared in stage one; but, instead creates a new variable and assigns the
Error in Class
By Gugeek, with 4 replies.
Last reply by Gugeek, over 8 years ago:
Thank you so much! I tried the squiggly bracket and it worked. I appreciate your help.
derivefont problem
By Bo8ker, with 3 replies.
Last reply by danpost, over 8 years ago:
Change: <Code Omitted>to <Code Omitted>and put <Code Omitted>in the constructor block that starts with 'public Lebensanzeige(Spieler1 s1){'.
Missing return statement...
By Ralfonso1, with 2 replies.
Last reply by Ralfonso1, over 8 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 8 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 8 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 8 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 8 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 8 years ago:
Thanks! It works now.
Help
By jeff, with 3 replies.
Last reply by Super_Hippo, over 8 years ago:
Show the act method of the class.
Help me Please
By lorena1999, with 2 replies.
Last reply by danpost, over 8 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:
333
334
335
336
337
338
339
X