Sign Up, Lost Password
You need to login to take part
Can't figure it out, healthbar Asteroids
By SportingLife7, with 10 replies.
Last reply by SportingLife7, 24 days ago:
Actually, we are all good. Thanks for your help @danpost.
cant set values and actors not showing image
By xixEmilyxix, with 14 replies.
Last reply by danpost, 24 days ago:
the flowers turning up as a green footprint - how would i go about fixing that?
In Flower class, modify the constructor to this (adding line 6): <Code Omitted>
using getObjects with specific index
By nax_s, with 1 reply.
Replied to by Spock47, 24 days ago:
Sorry, but your source codes will not work, please completely remove your current source code from Platform and BuyArcher before adding the source code given in this post.
As I understand, you want to click on a platform and after that you want to click on a button ("BuyArcher") and then a tower has to appear on the platform that was clicked earlier. That means that the button somehow needs the information which platform has been clicked. This information has to be stored somewhere, so that it can be used later. Currently, there is nothing that does this in your source code. 1.
Error at getWorld().addObject(new Tail( r, g, b)); help
By 4ldRg, with 9 replies.
Last reply by danpost, 26 days ago:
code of class tail << Code Omitted >>
Ah. Try: <Code Omitted>
how add text from different world?
By mariq_rasyid29, with 5 replies.
Last reply by mariq_rasyid29, 27 days ago:
roger that sir
cant add object after it is removed
By MerkurySol, with 2 replies.
Last reply by danpost, 27 days ago:
Programming a car
By jdkdoen05, with 1 reply.
Replied to by danpost, 27 days ago:
arrows to turn,
to accelerate and, although I didn't test it well,
is probably to decelerate. I cannot tell what mechanism controls the drag off the track, but possibly background color testing or maybe the center of the track is expressed in formulas and deviation from the center by a specified amount will trigger the drag. Being the track curves are not very clean cut, I would presume the former of the two ways.
Creating Boundaries in Greenfoot
By Ronan444, with 7 replies.
Last reply by danpost, 29 days ago:
Use the following move method: <Code Omitted>
can someone tell why my program not running on how it supposed to run
By divinity, with 10 replies.
Last reply by divinity, 30 days ago:
hi danpost, yes I see my mistakes there, thanks for pointing that out to me, is there anything that i miss
help idk what the mistake is
By mariq_rasyid29, with 4 replies.
Last reply by mariq_rasyid29, about 1 month ago:
ok thx sir for help
Preventing website to compile a class
By Roshan123, with 7 replies.
Last reply by danpost, about 1 month ago:
I just want to show how my scenario works, but the packages in Saver class is preventing it to show it in website. So I m thinking that any method which will only delay the compilation in Saver class only or any other method which will work without awt and swing package and it will behave as same as the before one. Hope u understand what i mean to say
Well, for one thing, you cannot write to a file on the website for security reasons. So, I guess the best you could do with that class is to comment out the method and the importing of java.awt.BufferedImage. I do
By tomzz, with 1 reply.
Replied to by danpost, about 1 month ago:
Make the following your initial world. Set its background image to a title screen. <Code Omitted>Have an
world for this to go to when the scenario is started ("Run" button is clicked).
Actor touching another actor
By xixEmilyxix, with 27 replies.
Last reply by xixEmilyxix, about 1 month ago:
Transparent background is still considered actor image and will be included in collision. That is, if the bee touches any part of the image of a flower, transparencies included, a collision is determined to have occurred.
ahhh right, ive done that with my bees aswell. Ill change both of them and hopefully it will be working properly - thank you for the help
How to draw a colorfull image after converting it into grayscale image?
By Roshan123, with 3 replies.
Last reply by danpost, about 1 month ago:
So is their any easy way to solve the problem?
Nothing easy. And anything that would be half usable would limit the pallet of colors used in the re-colored image.
Hi, i am currently facing an issue in greenfoot. The program gets compiled again and again automatically without stopping. Here is a sample of what i get. How do i get it solved?
By Sudarshan2, with 16 replies.
Last reply by Sudarshan2, about 1 month ago:
I think I got it solved. I tried greenfoot version 3.6.0. The problem still occurred. Then I decided to switch to ubuntu. I installed greenfoot on it. Now in it if I delete my actor's subclass the problem does not occur. I thank both of you for helping me!