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
Scoreboard help
By Stephon231, with 5 replies.
Last reply by Stephon231, over 12 years ago:
never mind found it
Having one Actor Follow Another? (No turning)
By Codybean1, with 3 replies.
Last reply by danpost, over 12 years ago:
If the Squggly object is to follow the Robot object and 'space' is the key then
Way to use api outside of Greenfoot
By Michionlion, with 4 replies.
Last reply by Michionlion, over 12 years ago:
thanks! I'll see what I can do to remove the GUI.
No World Class Found Error
By RedPhoneBooth, with 9 replies.
Last reply by danpost, over 12 years ago:
I am a little confused, however. In the method getFreeRooms() you are looking for values equal to zero, where in getFreeRoomsAround(int, int) you are looking for values NOT equal to zero. That 'for' statement we were looking at in your Gen() method earlier should probably be a 'while' statement <Code Omitted>and in the first line after that 'int rand = Greenfoot.getRandomNumber(3); ' , the '3' should be '4'; otherwise 3 will never be returned. The return range of 'getRandomNumber(n)' is 0 to n - 1.
Does removeObject () method is called, the object is released from memory?
By won0c, with 8 replies.
Last reply by won0c, over 12 years ago:
Thanks a lot !
How do i use sleep()?
By frederikam, with 10 replies.
Last reply by danpost, over 12 years ago:
The '%' operation is 'remainder after division'. 'counter = (counter + 1) % 4;' is equivalent to <Code Omitted>So, on consecutive cycles the value of 'counter' will go 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, etc. Your code with the 'while' statement will not work in the manner you would want. Certainly, line 5 will always return false.
Graphics Search
By CrazyGamer1122, with no replies.
I am about to begin working on a game where you command troops in battle, but i cannot find any graphics. does anyone know where i can find some good graphics? the images needed would be a swordsman, archer, magician, and dragon, also a knight in chain-mail armor to ride the dragon. thanks in advance.
Asteroid Question
By mncomic, with 9 replies.
Last reply by danpost, over 12 years ago:
My last post was in reference to my post previous to that.
need help with mouseInfo
By Gevater_Tod4711, with 14 replies.
Last reply by SPower, over 12 years ago:
Ok, sorry for the mistake.
Invoking an actor's meathod from the world?
By Stormtrooper299, with 5 replies.
Last reply by Stormtrooper299, over 12 years ago:
Thank you nccb, it worked :)
How to make the most of UserInfo storage
By royalfool, with 13 replies.
Last reply by danpost, over 12 years ago:
@nerdlemon888, see
this post
in another discussion.
drawString() problems
By erdelf, with 20 replies.
Last reply by davmac, over 12 years ago:
As I said before, we probably need to see the complete code.
Search for color near the actor
By Gevater_Tod4711, with 1 reply.
Replied to by danpost, over 12 years ago:
A method like that would probably take up way too much CPU time and slow down your scenario. Also, it would be a very complicated method to write. It would be even more complicated if the color could be from another actor as well as from the world. I was thinking about creating actors for each possible point that could be found; but, even that would require a multitude of transparent pixel-sized actors. These actors, however, could be rotated to indicate the slope of the edge at that point (I noticed you were looking at the 'Gravity Engine' scenario). You could then use 'getObjectsInRange
Weird exception in greenfoot
By SPower, with 2 replies.
Last reply by SPower, over 12 years ago:
Ok, thanks!
removeObjects()
By Cocky, with 11 replies.
Last reply by Gevater_Tod4711, over 12 years ago:
Ich hab grad mal ausprobiert Objekte mit removeObjects() zu zerstören. Also bei mir funktionier dieser Code: <Code Omitted> Ich glaube ich kenne den Fehler der dazu führt das das bei dir nicht funktioniert: removeObjects() ist eine methode die in World deklariert ist, was bedeutet das das: <Code Omitted>nur in der world funktionieren wird. Aber das:
935
936
937
938
939
940
941
X