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
please can some one help me with this code
By Coltz, with 4 replies.
Last reply by danpost, over 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, over 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, over 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, over 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, over 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, over 7 years ago:
it works. thanks a lot.
A*
By nicpatel, with 1 reply.
Replied to by danpost, over 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, over 7 years ago:
Thanks a lot , its working for now..
shootball
By ronald, with 8 replies.
Last reply by ronald, over 7 years ago:
thank you
Object mowing by mouse doesnt work...
By Proprogrammer04, with 3 replies.
Last reply by Proprogrammer04, over 7 years ago:
danpost wrote...
It probably teleports to the location the mouse was at when the object was created. The field (m) does not update on its own.
That worked, when I update the Information in act, it works, thank you
Question about the act method and threading.
By Vise, with 1 reply.
Replied to by Super_Hippo, over 7 years ago:
As far as I know, Greenfoot only uses one. Each act cycle, the act method of the active world and the act methods of all actors inside that world are executed one after the other.
Food Movement
By AdiBak, with 1 reply.
Replied to by danpost, over 7 years ago:
AdiBak wrote...
I'm making the agar.io game, and I got the player to follow the mouse with some delay, and the food to spawn, but I'm confused on how to make the food move with the player movement, similar to screen scrolling.
ClassCastExeption
By cx31, with 1 reply.
Replied to by danpost, over 7 years ago:
Replace line 43 with: <Code Omitted>
Button to create Dynamic Actor
By nicpatel, with 1 reply.
Replied to by danpost, over 7 years ago:
nicpatel wrote...
I want to create a button which is capable to crwate dynamic object when it drag to mouse coordinates
What have you tried? Unclear what you want exactly. "when it drag to mouse coordinates" makes no sense at all. Giving some attempted code goes a long way in clearing up any misunderstandings and gives needed context to anyone who is willing to help. It also usually gets your issue resolved in a much shorter time.
please help me with my code i cant proced in my gamewithout it
By Coltz, with 23 replies.
Last reply by Reversatile, over 7 years ago:
173
174
175
176
177
178
179
X