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
in game speed bar
By darkmist002, with 7 replies.
Last reply by darkmist002, over 11 years ago:
i wonder how long it will be before i can program stuff like this without having trouble and without having to ask for so much help. been programming with school for a couple of years now, and i'm still asking for help a good bit of the time. not as much as when i first started, but still a lot more than i want to.
GREENFOOT DARE #2 THEME
By JetLennit, with 3 replies.
Last reply by JetLennit, over 11 years ago:
null HAS WON THE CHALLENGE!!!!!!
Simulation
By LuisP, with 2 replies.
Last reply by Kartoffelbrot, over 11 years ago:
If you need random moving behaviour, try this (it's ugly but working): move(5); turn(Greenfoot.getRandomNumber(40)-10);
Change World and change back to the first World
By JesusJesus, with 17 replies.
Last reply by Kartoffelbrot, over 11 years ago:
Hallooo?
GreenfootImage and labels
By Zamoht, with 10 replies.
Last reply by danpost, over 11 years ago:
Getting back to the drawString method, I am sure it would not be difficult to change the return type to int and have it return the baseline length of the string drawn. But, as I said before, I doubt the Greenfoot team would agree to do something like that.
How to make a Crab each time it moves it uses 1/20 of a Worm worth of energy
By regba, with 52 replies.
Last reply by regba, over 11 years ago:
Thanks a lot danpost
Jump Engine Problem
By 8bitorangejuice, with 10 replies.
Last reply by 8bitorangejuice, over 11 years ago:
Managed to solve it, thanks for the help. //closed
NoClassDefFoundError caused by a GreenfootImage array?
By FlyingRabidUnicornPig, with 1 reply.
Replied to by FlyingRabidUnicornPig, over 11 years ago:
Turns out i did have an image problem, for some reason it gave a different error than normally... Line 08, spelled "cherries" like "ccherries" fixed it and problem solved.
How to get only the r value of a color
By JetLennit, with 2 replies.
Last reply by JetLennit, over 11 years ago:
Thanks
How to check the colour of a pixel in an image, then change it?
By K_wow, with 2 replies.
Last reply by K_wow, over 11 years ago:
davmac wrote...
Line 14 uses reference equality (the == operator) to compare the oldColour object with the colour object returned by getColorAt(). Even if the two objects specify the same colour, there's no guarantee that they'll be the same object. You should use .equals(...) for this check rather than the == operator. if (image.getColorAt(currentPixel, y).equals(oldColour)) ...
Thankyou, it works perfectly!
PDF format Book For GREENfoot
By doughauf, with 2 replies.
Last reply by dangjavageek, over 11 years ago:
Safari Books Online appears to carry the Greenfoot Book (http://greenfoot.org/book) and if you have a public library account, some libraries appear to have a relationship with Safari Books Online so that you can use that as a way to read / reference the book as needed. There's also an option to buy the e-book.
Can we display timer in a game?
By Kaiwalya, with 15 replies.
Last reply by danpost, over 11 years ago:
I came up with the following for the CountDown class:
Greenfoot character moves through walls only horizontally?
By brandondamante, with 1 reply.
Replied to by danpost, over 11 years ago:
If you save in a local field (or fields) the original direction of movement, then check for intersecting object, then when intersection found, move back in the opposite direction to move back off the object. Also, using this way you do not needs all those checks.
special attack types
By darkmist002, with 4 replies.
Last reply by darkmist002, over 11 years ago:
thanks, was hesitant about using loops b/c of what i had read. glad i asked you guys about it, otherwise i won't have even tried loops.
getting hp to scale with waves
By darkmist002, with 11 replies.
Last reply by darkmist002, over 11 years ago:
that works, thanks. can't believe i didn't think of something that simple. guess i got so caught up by using modulus division i forgot about regular lol.
802
803
804
805
806
807
808
X