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
Trick the Turle buG?
By alexdawes44, with 3 replies.
Last reply by xFabi, over 10 years ago:
Hey there, Please post the code used and a picture if possible, we can't help you based on that information
get instance of class from world
By Mewtoo, with 2 replies.
Last reply by Mewtoo, over 10 years ago:
Thanks a lot, it works perfectly :)
Error with playing sound
By sidetracked, with 1 reply.
Replied to by xFabi, over 10 years ago:
Cant really read whats in the picture Greenfoot is pretty buggy when using sounds, try converting your sound into .mp3, that should work
I keep getting this error...
By IanWasHere, with 7 replies.
Last reply by danpost, over 10 years ago:
Move the call to 'checkOut' to the end of 'act'.
get score if close to another object
By ryvetra, with 8 replies.
Last reply by danpost, over 10 years ago:
ryvetra wrote...
ah thanks you , it works. but getObjectInRange return object within radius(circle) is there anymethod that get Object and return int withn size(x,y) ?
There is a 'getNeighbours' method that you could use; however, it returns objects within a square or diamond area around the object -- not a rectangular one. I guess you could move the actor left and right and back to original location to encompass a rectangular one (getting neighbors at each place individually).
Made shield bar, when added to world through another class it sort of bugs out.
By Jalapena42, with 4 replies.
Last reply by danpost, over 10 years ago:
I wrote a
Value Display Tutorial
scenario that ends with display values in non-textual ways, including a bar. Sample code is also included.
getting started
By alexdawes44, with 4 replies.
Last reply by Super_Hippo, over 10 years ago:
The newest Greenfoot version doesn't have a compile button. Just click into the world and it compiles automatically.
Need help making a shield energy bar.
By Jalapena42, with 1 reply.
Replied to by danpost, over 10 years ago:
My
Value Display Tutorial
scenario has a page dealing with creating a non-textual representation of a value (a bar as well as a set of images). It contains code to programmatically create the images needed.
Is it possible to change the collision area of my actor?
By jvan123, with 1 reply.
Replied to by danpost, over 10 years ago:
jvan123 wrote...
i made my sprite twice as long as i needed by adding blank space below my sprite image.
This will cause you to have two apparently distinct radii depending on the direction of the turn (clockwise or counter-clockwise). The difference between the two would be equal to the height of the original image before doubling its height to add the transparent. This is something that you probably would want to avoid. You should probably find a different way to accomplish what you want here. I would suggest that you subclass your actor with my QActor class which is located and d
Bullets kill the object before hiting it
By MrSandwich, with 4 replies.
Last reply by MrSandwich, over 10 years ago:
Thank you very much, will try it asap. And post back the results and any doubts I might find. EDIT: It's working now!! Thank you for doing what you do and for all the help :)
My bullets are out of place
By KieranFurey, with 1 reply.
Replied to by Super_Hippo, over 10 years ago:
We can't help if you don't show the code.
Null pointer exception
By ryvetra, with 6 replies.
Last reply by ryvetra, over 10 years ago:
my mistake .. thanks :)
How to find out if a actor is X distance from another?
By sidetracked, with 3 replies.
Last reply by sidetracked, over 10 years ago:
thanks!
Enemy patrolling left to right
By sidetracked, with 3 replies.
Last reply by sidetracked, over 10 years ago:
thanks, I will do some testing when I get home from college, appreciate all the help!
Need help with getRotation();
By sidetracked, with 10 replies.
Last reply by remy88, over 10 years ago:
In the method fireGun() you are adding a new Bullet object instead of the bullet you already created. Change it to: <Code Omitted>
484
485
486
487
488
489
490
X