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
Having issues with the wait() command...
By DukeFutzwillus, with 5 replies.
Last reply by Nosson1459, almost 10 years ago:
oh
setWorld
By Nosson1459, with 5 replies.
Last reply by Nosson1459, almost 10 years ago:
<Code Omitted>this doesnt work (its in an actor)
i forgot 2 call the method
nullPointerException
By Nosson1459, with 4 replies.
Last reply by Nosson1459, almost 10 years ago:
thnx
Help with simple animating...
By DukeFutzwillus, with 5 replies.
Last reply by DukeFutzwillus, almost 10 years ago:
Oh that is helpful actually
Let monster jump
By Jochends, with 1 reply.
Replied to by danpost, almost 10 years ago:
Jochends wrote...
I can't seem to find the right code to let a monster jump on the same place and @ the same speed in a loop... . I also want to know how to die if i touch it.. .. I tryed a few things but always with bugs
What have you tried? It is always best to show what you tried. That way we can correct your ways and you can learn from that. Otherwise, we would just be doing the work for you and you probably would not learn much, if anything, from the experience.
getX getY after dragging an object
By DesperateGreenfootNewLearner, with 1 reply.
Replied to by danpost, almost 10 years ago:
It might be best if you show the entire class codes. Also, use code tags (see the link 'Posting code? read this!' below the 'Post a reply' content box).
collision
By Nosson1459, with 8 replies.
Last reply by danpost, almost 10 years ago:
Nosson1459 wrote...
not that everything before it
Where exactly do you think I contradicted myself?
cannot remove intersecting object
By taikvcing, with 5 replies.
Last reply by danpost, almost 10 years ago:
Looks like a 3-d issue. Try having the crusher remove the brick when the crusher is down to a certain point instead of using solely collision detection. You can use the height of the brick as the amount of distance the crusher is to the platform to determine when the brick is destroyed.
JFrame
By Nosson1459, with 14 replies.
Last reply by Nosson1459, almost 10 years ago:
Everything works, but that is because I put it like this:
creating javadocs for scenario
By freddyhard, with 3 replies.
Last reply by freddyhard, almost 10 years ago:
This is going back! What i did afterwards was open the project in Eclipse. There were loads of errors, but all i wanted was to get the documentation which Eclipse produced nicely - that might be of some use to you?
Why can't I reload delay count?
By Astralman, with 9 replies.
Last reply by danpost, almost 10 years ago:
If the 'reloadDelayCount' does what I think it does then something like this: <Code Omitted>
Need help spawning pigs randomly
By cdaawgcodeboi, with 2 replies.
Last reply by danpost, almost 10 years ago:
Start with a method to spawn a pig (in your World subclass): <Code Omitted>Now, you can call it when needed. For example, if you want to occasionally spawn one and limit the number of pigs in the world to, let us say,
Codes for the timer
By lolitsme, with 1 reply.
Replied to by danpost, almost 10 years ago:
lolitsme wrote...
Hi! I am planning to have a timer in my game, does anyone of you know the codes? thank you in advance!!
There are different ways to "time" events. One uses the number of act cycles and another uses the system clock. The system clock should only be used when real-time is critical. To determine which is better in your case, be specific and describe exactly what the timer is going to be used for. Also, indicate at what times, if any, the value of the timer is to be displayed.
Detecting Platform Glitch
By gmacias, with 1 reply.
Replied to by danpost, almost 10 years ago:
When an object is encountered when moving vertically (as well as horizontally, by the way), the position of the actor needs to be adjusted so that it is not constantly "in" the object. Use the value (sign) of 'vSpeed' to determine if the encounter was a head bump or landing on feet. Then you will know where to position the actor with respect to the encountered object.
Greenfoot not working
By LakeOtis, with 2 replies.
Last reply by danpost, almost 10 years ago:
Can you please show and example of a project that will not compile -- the World subclass of the project. HOW TO: open your windows browser and select the project folder. Find the JAVA file that is the initial World subclass and open it in a text editor. Then you can copy/paste the code here. If you cannot find the JAVA file in the folder, then list the files you do see and give the type of each file here.
425
426
427
428
429
430
431
X