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
Can I have text appear for x amount of time?
By MilesChamomile, with 1 reply.
Replied to by nolttr21, almost 8 years ago:
try this code: <Code Omitted> If you have any questions just ask
How can I hide an actor with out deleting it??
By Timmy_11, with 1 reply.
Replied to by Timmy_11, almost 8 years ago:
Never mind I used <Code Omitted>to make it transparent
How can I determine which actor to change color
By Brantgarron, with 7 replies.
Last reply by doglover555, almost 8 years ago:
c'mon Brantgarron
Remove all the actors of a class
By Aqurila, with 5 replies.
Last reply by danpost, almost 8 years ago:
Aqurila wrote...
So if I use for example getWorld().removeObjects(java.util.Collection<? extends Actor> objects), I have to first create a list of objects?
Yes. Find an additional method among those provided.
How do I get an actor to randomly move along a set point on the X axis but move on the Y?
By itssemu, with 8 replies.
Last reply by itssemu, almost 8 years ago:
thankyou!
delay
By doglover555, with 12 replies.
Last reply by danpost, almost 8 years ago:
doglover555 wrote...
Is there a way to do a method like that though or should I use a way from above?
It is possible, but you may still have to modify the act method due to the removal of the actor from the world. The code would still be like what I gave above with the modified line 7-- probably with and 'else if' for initiating the timer.
Why does this Keep on giving me a null pointer exception?
By itssemu, with 4 replies.
Last reply by Juno, almost 8 years ago:
i was literally going to ask you how to do this but i guess it's answered :) - a guy in your class
Gamepad Help
By BluRogue714, with no replies.
So, i want to implement a gamepad for my little world scroller game. I downloaded both the GamePad Template and the GamePad Tester scenarios. After opening the scenarios, I get a whole list of error messages mostly saying either certain packages do not exist (such as “package net.java.games.input does not exist”) or certain classes cannot be found (like “cannot find symbol - class Controller”). I can’t name specifics and there may also be other types of errors that I have not yet seen mainly due to the fact my computer is literally getting hundreds of error messages whenever I open up ANY of the greenfoot GamePad scenarios. Did I download anything wrong or are the scenarios just in serious need of updating? Any help is appreciated.
How to get a location from a class to another?
By kronama, with 4 replies.
Last reply by Yehuda, almost 8 years ago:
It gets the first Object in a (zero based) java.util.List.
How to make a timer?
By FlorianZhu, with 15 replies.
Last reply by danpost, almost 8 years ago:
Super_Hippo wrote...
You can try this to display minutes and seconds: (I partially copied it from one of my scenario, so some of it is German. But maybe that's not a problem, because I saw you using the word "nichts" in your last post.) ;) << Code Omitted >>
I think the code supplied might be a bit advanced for FlorianZhu with usage of an array, the Font class and especially using an inner class.
Getting a variable from an Actor class in the World class
By Juno, with 2 replies.
Last reply by danpost, almost 8 years ago:
Or, use: <Code Omitted>which is equivalent to: <Code Omitted>This is presuming that exactly one killCounter object is always in the world.
Problem with colinear points
By delijamiki, with 2 replies.
Last reply by delijamiki, almost 8 years ago:
I have fixed the problem, thanks for help. The problem was in the position of this block in act method.
Slow down one object at a time?
By MilesChamomile, with 2 replies.
Last reply by danpost, almost 8 years ago:
The SmoothMover class or my QActor class (see my Demo Collection) could be used to help in controlling the speed of the actor.
Im trying to add a counter limit and im failing :(
By thomaswillett, with 2 replies.
Last reply by Yehuda, almost 8 years ago:
...and what's the problem?
How to make turnTowards inversion
By arthurmadson, with 1 reply.
Replied to by danpost, almost 8 years ago:
arthurmadson wrote...
i want to do the reverse of this function turnTowards(x,y); where instead of the sawdich chase the boy it run away from him.
The following would be like the reverse method ("function"): <Code Omitted>Pretty simple -- probably not worth creating a seperate method for.
277
278
279
280
281
282
283
X