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
Moving Hero with platform
By davemib123, with 9 replies.
Last reply by Zamoht, about 13 years ago:
No problem, I really like your scenario.
Problem with drawing onto an image
By K_wow, with 5 replies.
Last reply by K_wow, about 13 years ago:
danpost wrote...
You were correct in using 'getImage' to get the image of the player. From there, you can use 'getWidth' and 'getHeight' on the image (i.e. 'getImage().getWidth()') to get the dimensions of the image. With that, you can 'setColorAt' any point on that image between 'getImage().setColorAt(0, 0, Color.BLACK)' to 'getImage().setColorAt(getImage().getWidth()-1, getImage().getHeight()-1, Color.BLACK)'.
Thanks, it worked perfectly.
Need some help
By joeschmoe, with 9 replies.
Last reply by joeschmoe, about 13 years ago:
woops, looks like it was actually crashing... it seems I never add one of the animal pictures to the folder and it wasnt being found, causing a crash. Thanks for the help!
life counter
By darkmist002, with 2 replies.
Last reply by darkmist002, about 13 years ago:
ok, solved it. gonna leave it up here for anyone that has trouble like this. changed the references around, and changed the methods a little in both classes. world: <Code Omitted> LivesLeft:
Jump active for far too long
By davemib123, with 4 replies.
Last reply by davemib123, about 13 years ago:
Thanks Zamoht it works great.
creating buffer to stop sinking when falling
By davemib123, with 14 replies.
Last reply by davemib123, about 13 years ago:
Thanks for the comment danpost. Point noted :)
Stopping The Game
By eddietheboss27, with 3 replies.
Last reply by eddietheboss27, about 13 years ago:
dosent work
Shooting
By eddietheboss27, with no replies.
Me Again sorry but i'm doing a project for school and i need a shooting commands thanks in advance
Random turns
By eddietheboss27, with 4 replies.
Last reply by eddietheboss27, about 13 years ago:
*Thanks
Any Opinions for my first game also a few places where i can get good images please
By rhyslacy123, with 4 replies.
Last reply by rhyslacy123, about 13 years ago:
thanks Gevater_Tod4711
Need help with scoreboards
By Alby, with 1 reply.
Replied to by danpost, about 13 years ago:
Since the 'int points' field is not in the PointHolder class, the class should basically be a Text class whose displayed text can be modified. The constructor should have an argument for the text to display; and it should call a method to 'update' the displayed text. The method updating the displayed text just creates the image to display and sets the image of the actor to that image. Another method should be added to the class to change the text. It should work just like the constructor: having an argument for the new text to display and calling the same method to update that displayed te
Code not working.
By Hawx_, with 2 replies.
Last reply by Zamoht, about 13 years ago:
I don't know if this is the problem, but right now you have to hold down shift or use caps lock to make getKey() be equal to "V". What I'm saying is that you might fix the problem by changing if ("V".equals(Greenfoot.getKey())) { to if ("v".equals(Greenfoot.getKey())) { Please tell me if this doesn't fix it. (Didn't see davmac's post)
reached end of file while parsing
By Black0utHD, with 1 reply.
Replied to by Black0utHD, about 13 years ago:
Okay i got it no help is need
Project. Space Invaders
By Black0utHD, with 2 replies.
Last reply by Black0utHD, about 13 years ago:
okay thank you
Can some one help me with this?
By derp2000, with 4 replies.
Last reply by derp2000, about 13 years ago:
<Code Omitted> This is the setlevel
817
818
819
820
821
822
823
X