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
Getting number of objects in range?
By DSP512, with 1 reply.
Replied to by davmac, almost 13 years ago:
getObjectsInRange(...) returns a List, which has a 'size' method giving you the number of items in the list. <Code Omitted>
Need Help Switching between Players in a Turn-Based Game
By ryanward214, with 1 reply.
Replied to by ryanward214, almost 13 years ago:
By the way this code is in the world class, and here is my player class for additional reference:
Button
By pr2alede, with 2 replies.
Last reply by pr2alede, almost 13 years ago:
Great that's worked. Thankyou
drawString
By DerAxeEffekt, with 1 reply.
Replied to by davmac, almost 13 years ago:
From the documentation:
The baseline of the leftmost character is at position ( x , y )
The problem is that you're drawing the text too high up; it goes off the top of the image.
Enemy isn't spawning
By GreenAnthony, with 3 replies.
Last reply by danpost, almost 13 years ago:
davmac wrote...
This looks like a partial bit of code. What method is this? Could you post the whole method? What is line 3 - "ngeSize == 1) " - supposed to be?
I presumed it was in the act method of the EnemyRocket class and line 3 was a cut-off 'if (changeSize == 1)'.
How to create files...?
By GreenAnthony, with 1 reply.
Replied to by lordhershey, almost 13 years ago:
check this little example: http://www.justexample.com/wp/write-file-with-printwriter/ you might just be missing the import java.io.* line
deleting and reinstalling greenfoot??
By hazel, with 1 reply.
Replied to by davmac, almost 13 years ago:
If you changed the example scenarios, then you need to:
Uninstall Greenfoot.
Delete all the files from wherever you installed Greenfoot (eg C:\Program Files\Greenfoot). I assume you're on Windows, though you don't even say.
Re-install Greenfoot.
Accessing information from a seperate world
By Cross, with 13 replies.
Last reply by danpost, almost 13 years ago:
The code I gave was to be placed at the place where the game is determined to be over (probably in the class of the player).
how to return one actor the other's x and y/rotation
By deathburrito16, with 6 replies.
Last reply by deathburrito16, almost 13 years ago:
thanks. that helped lot.
limit my actors movement
By NickyL212, with 102 replies.
Last reply by danpost, almost 13 years ago:
@Super_Hippo, and all others, 'System.currentTimeMillis()' does return the real time (system time) and increases regardless of the state of your scenario.
Extending two classes/subclasses
By cloudster101, with 5 replies.
Last reply by davmac, almost 13 years ago:
mohamed.talaat99 wrote...
Hello, i have a game contain many snakes and one person and house when person touch house i need to remove all actors in the world how can i remove all actors ? thanks
Please start your own topic for this question.
can i make 1 classactor with of the same images dissapear
By Vigelandzoon, with 8 replies.
Last reply by danpost, almost 13 years ago:
The line numbers refer to the code of which I refer to.
move actor
By mohamed.talaat99, with 5 replies.
Last reply by mohamed.talaat99, almost 13 years ago:
ok thank you i understand you make turn first after that move actor thank you Super_Hippo
Make a hanged
By deban, with no replies.
I have actually follow the tutorial but it's very difficult to make a hanged because i don't know how to program random letters and make each letter complete in a bottom line when i have tap a key letter and each time it's false it makes appear an image as a head. Moreover I don't know how to use some instruction as ( Greenfoot.RandomNumber()) to make as ( Greenfoot.RandomWord()) i have tried to put word but i don't know how to assign word in RandomNumber. And also to create a word with just at the start with bottom line and makes appear in the world. If you don't understand what i am saying it's normal i'm french and it's more difficult with the barrier language to program.
Need Help: How to increase speed
By Maurice42, with 8 replies.
Last reply by Maurice42, almost 13 years ago:
<Code Omitted>
738
739
740
741
742
743
744
X