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
Highscores UserInfo - Set username
By Dytanoth, with 4 replies.
Last reply by Dytanoth, over 12 years ago:
Is there a scenario online, as example?
breakout
By actinium, with 2 replies.
Last reply by actinium, over 12 years ago:
Thanks, will give your suggestions a try.
variable not changing..is something wrong in the code. the value of variable random is not changing even after envoking the function.?
By vagisha, with 17 replies.
Last reply by vagisha, over 12 years ago:
thanks everybody! i have got it right..
Pivot Points? Attached Objects
By ryanprescott, with 7 replies.
Last reply by danpost, over 12 years ago:
Create seperate actor classes for each part. Add to each one an instance List<Actor> array to hold the appendages (the parts that do not have further appendages do not need the list). Create the appendages for each part in the constructor of the class which that part extends from and add them to its list. Add an 'addedToWorld(World world)' method to add the listed objects into the world and call a method that you will add to each one (those with lists) called something like 'fixAppendages'. These methods will locate to listed appendages to there proper location dependent on its location. S
getHeight method
By programmer274, with 2 replies.
Last reply by actinium, over 12 years ago:
If you want the height for an Actor use the getImage() method i.e. <Code Omitted> The GreenfootImage class contains the getHeight method that returns the Height of an image. I am guessing you want the height of an Actors image. Check out the greenfoot docs for GreenfootImage.
I have problem with getHeight() method
By snow13, with 10 replies.
Last reply by programmer274, over 12 years ago:
usually when I ask a question I try not to ask for the straight question and if I do I ask what each part of the code does.
Returning the status of an object
By camsterb, with 3 replies.
Last reply by camsterb, over 12 years ago:
I think I got it. Hopefully I'll solve the rest of my project. Thanks for the great help.
2 Issues
By Terrosion, with 1 reply.
Replied to by danpost, over 12 years ago:
I do not believe there is a command in the Greenfoot class that will stop the music. I do believe, however, that once the scenario is stopped, the music will stop after it finishes the current looping of it. If you wish to have more control of the music, use the GreenfootSound commands to start and stop the music.
Problem with scrolling the world?
By UnclePedro, with 2 replies.
Last reply by UnclePedro, over 12 years ago:
Ah thank you very much! Its working nicely... I think my method had the right idea, but it was a little too complicated... and in the wrong class. Thank you!
Make the ball bounce in pong
By Rodin10, with 2 replies.
Last reply by Rodin10, over 12 years ago:
Thanks :)
Greenfoot.start() when initializing world
By Zamoht, with 2 replies.
Last reply by danpost, over 12 years ago:
It appears that might be a bug that you will not be able to correct. After hitting reset, I noticed that the 'Pause' button was present (which means the scenario should be running); however, I was able to drag-n-drop the menu options in the scenario (and I am sure that is not programmed into your scenario). BTW, I was using a downloaded version of 'Platforms of meh' @Greenfoot team, could you look into this please and inform as to what the problem might be -- thanks.
Global variables Incompatible types
By Dytanoth, with 4 replies.
Last reply by vonmeth, over 12 years ago:
It looks like "playbutton difficulty" is never actually set to anything, so it is null. <Code Omitted> I don't think you are coding this is the best way. You might want to try coding it in the following way: When a "star" is pressed, it gets "menu" and then passes the difficulty to it, which then stores it. Star will simply have a way to detect a mouse press, and then a method to pass difficulty information on to the menu.
windows 8 compatibility
By spargol@nashua.edu, with 2 replies.
Last reply by spargol@nashua.edu, over 12 years ago:
I finally got Greenfoot to download and work. I think my issue is a bad version of Windows 8. I am hanging in Internet Explorer constantly and I cannot get Google Chrome to work either. I am very frustrated with Windows 8. thank you for your quick response.
Need to find the book scenerios!
By myheartwillgoon, with 3 replies.
Last reply by davmac, over 12 years ago:
No, the video tutorial is not the book, it uses different scenarios. In this case your link is to the teacher commentary which applies to the previous blog post, which also has a download link for the code:
http://blogs.kent.ac.uk/mik/2012/01/joc-classes-and-objects/
hello
By tribhuvan123, with 1 reply.
Replied to by mjrb4, over 12 years ago:
Hi, have a look at the tutorials on the documentation page: http://www.greenfoot.org/doc
909
910
911
912
913
914
915
X