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
Preventing website to compile a class
By Roshan123, with 7 replies.
Last reply by danpost, almost 4 years ago:
Roshan123 wrote...
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
Instruction Menu
By tomzz, with 1 reply.
Replied to by danpost, almost 4 years ago:
Make the following your initial world. Set its background image to a title screen. <Code Omitted>Have an
Instructions
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, almost 4 years ago:
danpost wrote...
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, almost 4 years ago:
Roshan123 wrote...
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.
Trying to remove an Object once its touched 3 times.
By tomzz, with 9 replies.
Last reply by tomzz, almost 4 years ago:
This works perfectly!! Thank you! Makes sense :)
When actor clicked a counter increases by one
By xixEmilyxix, with 36 replies.
Last reply by danpost, almost 4 years ago:
xixEmilyxix wrote...
Theres no actors above the buttons at all, the only other actors in the world are the bees, the hive and the flowers
Try adding the following line into your
BeeWorld
constructor: <Code Omitted>
lag in wheel of fortune class
By Roshan123, with 5 replies.
Last reply by danpost, almost 4 years ago:
Roshan123 wrote...
tell me how do manage to make ur every program reusable?
By keeping all behaviors and states of an object type in their respective classes. Let the world control the game/scenario without getting involved with any actors not specifically created for the world to control. On the other hand, do not have actors try to control the overall running of the game. Interactions between two type actors should be coded only in one of the actor's classes -- preferably, the more "major" one of the two types.
what are the things u hate in my programming skills?
Won't upload to Website.
By nili3000042, with 5 replies.
Last reply by nili3000042, almost 4 years ago:
yep, seems like it
i am trying to make my player fire a laser when spacebar is pressed but i cant add my laser object through my Rocket class
By roonie01, with 3 replies.
Last reply by danpost, almost 4 years ago:
roonie01 wrote...
ok that works but why does the laser make my enemy class stay at top of screen i was trying to have laser delete after touching the enemy
You only gave
Rocket
and
Laser
codes here. Need enemy as well.
need help with getting enemy actor to respawn at original spawn point after touching bottom
By roonie01, with 9 replies.
Last reply by danpost, almost 4 years ago:
roonie01 wrote...
i did your suggestion but now when i hit spacebar top fire the laser it makes my enemy class get stuck at top of screen how can i remove the laser after it hits the enemy class
That sounds like
Rocket
class codes, which was not given.
How to save 2 UserInfo at a time?
By Roshan123, with 2 replies.
Last reply by Roshan123, almost 4 years ago:
Super_Hippo wrote...
Anyway, this might fix it: New code:
Lava/Spikes Issue
By KaiTheLesbian, with 1 reply.
Replied to by roonie01, almost 4 years ago:
do a command something like this
Sound Recorder Not Working
By FavianCD, with no replies.
Anytime I try to use the sound recorder it doesn't pick up any audio, only static. Is there a way to fix this, or put in my own .wav file that i have?
Greenfoot.playSound("FUEL.mp3"); not working
By sashvanth, with 23 replies.
Last reply by sashvanth, almost 4 years ago:
car 3 main actor which consume fuel public class Car3 extends Animal car 2 side actor public class Car2 extends Animal car 3 side actor public class Car1 extends Animal fuel which car 3 need to consume public class Fuel extends Animal
help setting background in my world
By roonie01, with 1 reply.
Replied to by roonie01, almost 4 years ago:
new code is here also need help with adding multiple enemys along the top of my screen
50
51
52
53
54
55
56
X