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
Trouble with if statements
By grog2, with 3 replies.
Last reply by grog2, almost 10 years ago:
Thanks, this is really helpful!
Trouble with isTouching
By thomas1998, with 8 replies.
Last reply by Super_Hippo, almost 10 years ago:
SnakeHead class line 53. It should be WEST and not WAST. Code works for me then.
I need my actor to spawn after 10 seconds
By mcgougan33, with 1 reply.
Replied to by Super_Hippo, almost 10 years ago:
Use this in the world subclass: <Code Omitted>
How to see if mouse is being pressed on an actor?
By bobbyjones2000, with 1 reply.
Replied to by Super_Hippo, almost 10 years ago:
http://www.greenfoot.org/files/javadoc/greenfoot/Greenfoot.html
There you can find the methods related to the mouse. They are often enough. Maybe you also want to use a MouseInfo method:
http://www.greenfoot.org/files/javadoc/greenfoot/MouseInfo.html
You can use combinations of some methods. I guess 'mouseDragged' could be the method of your choice.
Trouble with booleans
By grog2, with 3 replies.
Last reply by grog2, almost 10 years ago:
Never mind, I think something was wrong with greenfoot not compiling or something, I restarted it and it works fine now. Thanks!
Controling one actor at a time
By 123Mike123, with 25 replies.
Last reply by kidlivin, almost 10 years ago:
Finnaly I resolved the problem! Thanks for all!! :D :D :D
Trick the Turle buG?
By alexdawes44, with 3 replies.
Last reply by xFabi, almost 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, almost 10 years ago:
Thanks a lot, it works perfectly :)
Error with playing sound
By sidetracked, with 1 reply.
Replied to by xFabi, almost 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, almost 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, almost 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, almost 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, almost 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, almost 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, almost 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
482
483
484
485
486
487
488
X