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
transparency
By Sathya_srikanth, with 1 reply.
Replied to by danpost, over 5 years ago:
Sathya_srikanth wrote...
i need to reduce the transparency of an object every time it touches the other, say by 10
The
GreenfootImage
class has a
setTransparency
method you can use. You will need to track the currently set transparency value with an int field so you can first retain its current value and second limit any new value to the range (0, 255).
java.lang.NoClassDefFoundError : greenfoot javafx/application/application
By taufikridwan, with no replies.
I have installed oracle java, and in greenfoot the game runs normally, but after exporting it to the jar, and opening it via cmd the words "could not find or load main class greenfoot.export.GreenfootScenarioApplication. cation java.lang.NoClassDefFoundError: greenfoot javafx / application / application" What should I do to be able to open the jar file. thank you for helping
high score of players
By Sathya_srikanth, with 1 reply.
Replied to by danpost, over 5 years ago:
Sathya_srikanth wrote...
I'm trying to make a high score list of players
Please refer to my
UserInfo Demo
scenario as an example. The
ScoreBoard
class can be inported into your scenario via the menu bar ( w/"Edit >> Import class...").
Actor keeps freezing.
By ItzLukeStorm, with 10 replies.
Last reply by ItzLukeStorm, over 5 years ago:
Thanks so much!
Create Map from a file
By Belinus, with 3 replies.
Last reply by Belinus, over 5 years ago:
ok thanks
Win screen for minesweeper
By Tronkex, with 1 reply.
Replied to by danpost, over 5 years ago:
Tronkex wrote...
So I dont really know how I should check if the game is won. My idea was that I have a function that returns true if all objects (tile.class) in the game have either the string "flaggedBomb" or "open". But I dont know how to realize it.
The flagged bomb count should equal flag count AND the sum of that and open count should be total cell count (width times height).
Scenario Breaks when Published
By LashWT, with 4 replies.
Last reply by Gbasire, over 5 years ago:
yep that's what I was thinking, glad I could help :)
Get variable from specific object an actor is touching
By Gbasire, with 18 replies.
Last reply by Gbasire, over 5 years ago:
it might be better yes, thanks i will do this
Minimum JRE Version
By Sathya_srikanth, with no replies.
what is the Minimum JRE Version required to run a greenfoot file?
not able to share my game
By Sathya_srikanth, with 2 replies.
Last reply by Sathya_srikanth, over 5 years ago:
thank you :D
Happy new Year!
By rocket770, with 1 reply.
Replied to by Dialglex, over 5 years ago:
Thank you rocket770, very cool!
reversed movement
By Sathya_srikanth, with 1 reply.
Replied to by danpost, over 5 years ago:
Sathya_srikanth wrote...
so i wanted the actor jerry to get mirrored vertically when "a" is pressed ( while it's moving) basically I want jerry to face to the side it is moving...but when I tried this code when ever I pressed "a" its started glitching << Code Omitted >>
You will need to add a field to track which direction was last moved; then, change the image when the field does not match the current state. Either that or keep both images in an array (or in two separate fields); then when the required image is not active, set it active.
error
By Sathya_srikanth, with 10 replies.
Last reply by Sathya_srikanth, over 5 years ago:
thanks so much :D it worked!
multiple objects appear from top to bottom
By Sathya_srikanth, with 7 replies.
Last reply by danpost, over 5 years ago:
Sathya_srikanth wrote...
also when the object(monster) jerry touches any of these monsters a counter should count these scores up to 50 when the world changes to another screen
Class for
jerry
should check for touching.
Counter
object should probably be in world. Place
public
method in world to adjust
counter
value and check for changing worlds.
Can I get clicked actor's index?
By Honza, with 3 replies.
Last reply by Honza, over 5 years ago:
Its alright now I got it, thank you.
97
98
99
100
101
102
103
X