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
Scenario not running online on the greenfoot website.
By chandan03, with 4 replies.
Last reply by chandan03, over 11 years ago:
but no one scenario is running..! some days before it was running perfectly..! but now don't know what happens ...
just saw the fractal
By 5mark7, with 1 reply.
Replied to by danpost, over 11 years ago:
Please refer to the
GreenfootImage API documentation
for the methods available for image editing.
increase integer [HELP]
By pandu4431, with 4 replies.
Last reply by danpost, over 11 years ago:
The way azazeel gave will work. It is always best to check these type values (scores, lives, health, etc) immediately after their values are changed. If not done immediately, the comparison may remain true for multiple act cycles and you will be doing the action required unnecessarily multiple times. If doing things like working with images or adding new actors into the world, you could end up with your project lagging, or even worse, crashing.
Need help with Score counter resetting after the world changes
By ddnezus, with 11 replies.
Last reply by muhammadrafi, over 11 years ago:
thanks danpost, its very help my project.
Keep object when moving to new world
By Linkk0, with 39 replies.
Last reply by Linkk0, over 11 years ago:
YES! That's it! Thank you soo much for the help, and sorry for taking up so much of your time!
Make different when Level increase [HELP]
By pandu4431, with 9 replies.
Last reply by danpost, over 11 years ago:
Remove the division sign, "/", in the middle of line 6 of the 'atWorldEdge' method (in the 'return' statement).
Making items appear after certain amount of time
By Programmer1998, with 2 replies.
Last reply by danpost, over 11 years ago:
What yedefei said about the statement not working is true. There is another point to consider about the statement, however. If the object was not yet in the world, then 'w', which is assigned the value returned by 'getWorld' will be 'null'. It is rare, and should be avoided, to have an actor add itself into a world. For one thing, it would need to know what world object to add itself into. For another, it would need to know where in that world to add itself. These parameters should come from outside sources -- like the world, or an actor in that world.
How to move only after keys pressed?
By randombruh, with 3 replies.
Last reply by yedefei, over 11 years ago:
for example ,if you want to press “up” key to trigger moving 10 steps ,you can write : <Code Omitted>
How to delay and remove object few secs after the object appears?
By ChelseaIsland, with 1 reply.
Replied to by yedefei, over 11 years ago:
Since you used an nominated objects "new Wrong1()" when adding object ,the compiler couldn't find the reference of the object of Wrong1 ,so Line 10 “getWorld().removeObject(Wrong1);” can't work 。You may adjust the code like this: <Code Omitted>or you could just change the code in Line 8 to: <Code Omitted>One more thing , you‘d better not to define the same identifier of object as the class。
How to connect Circuit 1 and Circuit 2[HELP PLEASE]
By fadhilpratama, with 1 reply.
Replied to by azazeel, over 11 years ago:
Greenfoot.setWorld(new Circuit1()); if your class name is Circuit1
make enemy accelerate when level increase [HELP]
By pandu4431, with 1 reply.
Replied to by pandu4431, over 11 years ago:
ups, in Asteroid in act() should "setLocation(getX(), getY()+m);"
Counter Problem
By Tommy99, with 3 replies.
Last reply by Tommy99, over 11 years ago:
Oh okay. Thanks to both of you for the help. It works well now.
help me make enemy shoot back
By mghazi020796, with 1 reply.
Replied to by lordhershey, over 11 years ago:
Is it you want the enemies to shoot at you when they 'see' you? Do you have any code for enemies at the moment.
[HELP]world scrolling when the actor move
By xbilskix, with 3 replies.
Last reply by danpost, over 11 years ago:
xbilskix wrote...
i think it will be like vector game on android, can you give me link or project that similar to game that i think? to study more
Please answer the questions I provided above. I am not familiar with android games.
please help me fast solve this question
By pandu4431, with 3 replies.
Last reply by Super_Hippo, over 11 years ago:
<Code Omitted> Like this? Every positive even number except 2 is dividable into two parts of even numbers. (2 isn't possible, because 1 and 1 is the only solution, assuming 0 isn't a positive weight.)
567
568
569
570
571
572
573
X