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
Carry over score in between levels
By AnimeRules, with 8 replies.
Last reply by AnimeRules, almost 7 years ago:
thanks for telling me about classes tho
Finish line
By Mia@2703, with 12 replies.
Last reply by danpost, almost 7 years ago:
Mia@2703 wrote...
How do you move an object at a certain time?
With what is given, all that can be provided is a bit of pseudo-code: if (timeToMove) move(); Obviously, this is insufficient. Please provide more details and some attempted code.
How do you get an actor to wrap all the way around the world?
By puggo7, with 9 replies.
Last reply by puggo7, almost 7 years ago:
OH wait, you're right... I tried another way and it works much better and keeps the "hopping" at a constant distance! My bad :P
I need Help Can Someone Help i Dont Know How to Spawn Something After 1min Help Pls
By AndyGun, with 4 replies.
Last reply by AndyGun, almost 7 years ago:
nvm
i also have this problem if any one can have a look that would be great
By Coltz, with 1 reply.
Replied to by danpost, almost 7 years ago:
Remove line 34 (does nothing but create an unused object). The condition on line 20 will never evaluate
true
as only zero (0) can be randomly returned using one (1) on line 19.
im trying to make a actor fade out the world but cant figure it out
By Coltz, with 1 reply.
Replied to by danpost, almost 7 years ago:
If you want other things to happen while the fading is taking place (not specified), you cannot use a
while
loop. To fade, you must repeatedly change the transparency value (you consistently set a zero value).
To AndyGun
By Proprogrammer04, with 1 reply.
Replied to by AndyGun, almost 7 years ago:
thx
please can some one help me with this code
By Coltz, with 4 replies.
Last reply by danpost, almost 7 years ago:
In the above example, the rotation is set before the bullet is added into the world.
Static context
By Fargesia, with 3 replies.
Last reply by danpost, almost 7 years ago:
You can make it static as long as you assign the array values in your world constructor:
drawline
By ronald, with 20 replies.
Last reply by danpost, almost 7 years ago:
ronald wrote...
I do not know how to do it, can you give me an overview or give me the code thank you
(1) set color white; (2) draw line; (removes old line) (3) adjust coordinates of line; (4) set color black; (5) draw line; (draws new line)
my code wont work
By Coltz, with 2 replies.
Last reply by danpost, almost 7 years ago:
Do you: (1) create; and (2) add a
new Timer
object into the world before calling the
Timer
method on it?: <Code Omitted>
how long in deley 1 second ?
By Coltz, with 1 reply.
Replied to by danpost, almost 7 years ago:
Coltz wrote...
how long in deley 1 second ?
In a scenario running at normal speed (speed = 50), about 60 act cycles.
getWorld variable
By liverpoolfc, with 6 replies.
Last reply by liverpoolfc, almost 7 years ago:
it works. thanks a lot.
A*
By nicpatel, with 1 reply.
Replied to by danpost, almost 7 years ago:
nicpatel wrote...
i have two class squirrel and tree. i want to implement a* for squirrel to find tree . i do not know how to do any guide...??
There are several
A*
java tutorials on
YouTube
. Do a search.
Confused
By nicpatel, with 4 replies.
Last reply by nicpatel, almost 7 years ago:
Thanks a lot , its working for now..
172
173
174
175
176
177
178
X