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
Level Saving - String to Object
By Razzo, with 4 replies.
Last reply by danpost, about 14 years ago:
Or, if you want to be more explicit: <Code Omitted>to avoid 'Tree' from producing 'Treefrog'.
How can I remove an object from the world?
By IsVarious, with 33 replies.
Last reply by IsVarious, about 14 years ago:
danpost wrote...
If you are calling a method that is not in the same class code as where you are calling from, then you must tell it (the compiler) where that method is located. In your case, the method was in the Board class (not just the World class). The methods inhereted from the world you can just say 'getWorld().methodName()'; but for methods you write in your Board class, you have to tell it '((Board) getWorld().methodName();', or it will not find it. The '(Board) getWorld()' part is what 'casts' the world returned to you Board class.
Wow, I kinda thought it was something
World Subclasses
By Dingram, with 2 replies.
Last reply by Dingram, about 14 years ago:
Excellent, thank you very much!
Changing the picture of the mouse icon.
By MarkooP, with no replies.
Hi. I am currently attempting to change the icon of the mouse pointer into a transparent GIF. However, I'm not sure exactly how this can be done. I did do some research before asking you guys, but none of it made sense. If somebody could be explain how, it would be greatly appreciated.
Greenfoot 2.2 beta bug?
By Duta, with 7 replies.
Last reply by Duta, about 14 years ago:
That's a shame. I guess I'll just downgrade to the previous version until the fix is released
Writing a file
By Busch2207, with 9 replies.
Last reply by K_O_P, about 14 years ago:
@ Busch Maybe you can store more ints, when u use Symbols instead of numbers if you take 100 different symbols, you can write the numers 0 to 99 in just one space! you just need a method that converts a number in this code and backwards.
Bring Image To Front
By RedPhoneBooth, with 4 replies.
Last reply by danpost, about 14 years ago:
RedPhoneBooth wrote...
but actors cant add objects to the world right?
That is not quite true. As long as the actor is in the world, you can use the 'getWorld()' method to access the 'removeObject' and 'addObject' methods. <Code Omitted>
Assignment to make the classic "Frogger" game.
By decobro, with 7 replies.
Last reply by decobro, about 14 years ago:
Okay I have added some squiggly brackets around my code and I have managed to get it working again! Thanks for your help everyone, much appreciated.
List.toString() then String.toList()
By Razzo, with 3 replies.
Last reply by tkiesel, about 14 years ago:
I should mention that while the work to write something like this can be finicky and tough, once you have it, writing new levels for your game becomes so much easier, and for really complex levels, your world file can shrink from an enormous monstrosity to something far more manageable! :) Two high school students of mine (with some help on file IO from me) used this basic system to write a Galaga-type space shooter, and their level Strings even included timing data. Cool stuff.
Sounds for Movement
By lgbrf, with 2 replies.
Last reply by lgbrf, about 14 years ago:
That worked great, thanks :D
Cant figure it out!!!! scenario
By mfiala5, with 2 replies.
Last reply by davmac, about 14 years ago:
I cant even get the move(); command to work
Why not - what goes wrong? Post your code here.
changeing the img
By -nic-, with 13 replies.
Last reply by -nic-, about 14 years ago:
[Disallowed URL] [Disallowed URL] the first is the bosshealth classes value and the second is the bosses value but there different
Help with programming basics
By mfiala5, with 2 replies.
Last reply by SPower, about 14 years ago:
I think I know what you did wrong. In the greenfoot book, there are APIs already defined for you. In a new scenario, those APIs aren't there. You just have to copy those APIs into your scenario. Next time, you have to think about it yourself. You are doing this for school, so you have to understand it, or you'll get bad grades. I'm not going to create a scenario for you anymore, I realized you really have to do it yourself. Success!
The Third Dimension
By Razzo, with 5 replies.
Last reply by Razzo, about 14 years ago:
Just looked at it, Looked really smooth and all :) Opened the code, 0.0, Way too difficult for me D:
How do you make an actor face another actor if they are a certain distance apart.
By MakerOfGames, with no replies.
Title: How do you make an actor face another actor if they are a certain distance apart? Like in a TowerDefense game
993
994
995
996
997
998
999
X