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
Retrieving, saving and printing highscores
By karolis, with no replies.
accidentally reposted http://www.greenfoot.org/topics/6150
Best way to display images in a game window in Eclipse?
By Entity1037, with 4 replies.
Last reply by Entity1037, over 12 years ago:
Ah! Thank you!!!
How to create messages "You Win / You Lose"
By zakiprasasti, with 3 replies.
Last reply by danpost, over 12 years ago:
Maybe better places to start are the Java trails
Getting Started
and
Learning the Java language
; plus the Greenfoot tutorials on the left of
this page
.
Having a Screen in between worlds
By docinkc, with 1 reply.
Replied to by danpost, over 12 years ago:
You can start a new world, passing the world to proceed to when the key is detected. The background of this world can say 'Next Level' and instruct to press the key to continue. This world will need a field to hold the world object that it will proceed to and the constructor must assign that field the value passed in its argument. For a demo, refer to my
Crayon Babies: A World Changing Demo
scenario.
how do you insert a moving red block someone send it me plz
By SwaliG, with 2 replies.
Last reply by danpost, over 12 years ago:
Please be more specific and show code.
Insisting problem
By Onilika, with 7 replies.
Last reply by danpost, over 12 years ago:
Remove the 'explodeBad' method from the Bad class and add a line in the 'retiraBomba' method in the Bomb class within the 'if' block to remove the Bad3 object found (place the line before the line that removes the bomb).
powerups
By GamesGrinder1998, with no replies.
how do i make a powerup that adds more points (about 5)....i've got a powerup that increases your speed but i'm not sure how to do this one, need help please...
How would I go about counting removal of actors? Please help!
By yonathanz, with no replies.
<Code Omitted> each time the gun actor removes the beaty actor, I want the counter to increase. I don't have anything in the beaty actor. I also have a score board actor created.
Recognizing underscores from integers from input
By JasonZhu, with 21 replies.
Last reply by JasonZhu, over 12 years ago:
Ok, thank you for your confirmation!
Score keeping and few other questions
By yonathanz, with no replies.
I tried to follow few guides and create a score keeper that counts how many characters are taken off screen (eaten)....but there is no success so far. Can you provide me an overview or how-to on how to create a score keeper? Another question I have is: how/can you display a character at the corner of the screen that guides you around with a bubble text then disappears? How do you build a cycling background? Thanks, (I will post my code in few hours, if that helps)
My greenfoot game will not load even though there are not any syntax errors what should i do? Here is the code for my world.
By jmdreyer, with 4 replies.
Last reply by jmdreyer, over 12 years ago:
It worked thank you very much
Help setting up classes and hit detection in an actual java game.
By Entity1037, with 6 replies.
Last reply by bourne, over 12 years ago:
Since Greenfoot has this already setup in mind, you probably will be recreating something similar
How to draw a Line between two objects on my World
By Rudolf, with 1 reply.
Replied to by danpost, over 12 years ago:
You will need an Actor object to be the line while you are drawing it (click-dragging from one object to another). Whether it is to stay an Actor once the line is completed or you draw the line on the background of the world afterwards is up to you (if you want each line to maintain a link between the two objects, keeping them as actor objects might be the way to go). You will need code in your world class act method to detect the dragging and create the object for the line. The class of the line object will then take over and while dragging continues, change size, location, and rotation t
how to addobject & move it
By rohit.dudhbhate, with 6 replies.
Last reply by danpost, over 12 years ago:
Actor method 'getX' returns the x-coordinate of the actor in the world. Actor method 'getY' returns the y-coordinate of the actor in the world. World method 'getWidth' returns the width of the world (one more than the highest x-coordinate in the world, which is at the right edge; the left edge x-coordinate is zero). Actor method 'getWorld' returns the world the actor is currently in. Actor method 'setLocation' sets an actor at the given coordinates in the world it is in. Those are the methods you will need. You just have to create an 'if' statement that checks to see if the actor is at
Enemy following Player
By accucore, with 3 replies.
Last reply by accucore, over 12 years ago:
That works just the way i want it to, thank you danpost :)
695
696
697
698
699
700
701
X