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
Problem with my Crab game
By ShowS7oppeR, with 2 replies.
Last reply by ShowS7oppeR, over 11 years ago:
It worked, thank you :)
Display question generated to a String
By cobarr, with 1 reply.
Replied to by danpost, over 11 years ago:
First off, you need to put a condition on displaying the question (you do not want the question to be repeatedly displayed on the terminal). Second, you need to call the 'Question' method to load the new values before displaying the question. FYI, you cannot create terminal output using System.out.println on the site.
Message on World Error
By ariaco, with 5 replies.
Last reply by ariaco, over 11 years ago:
Ahh I see. Thank you!
Pause button
By adi110, with 1 reply.
Replied to by adi110, over 11 years ago:
Never mind about this now, I got a pause option to work.
Help with firing
By hugtvy, with 14 replies.
Last reply by danpost, over 11 years ago:
hugtvy wrote...
ive got a menu at the bottom of my game that includes game info like how many bullets left in your gun, the gun ur using etc. but the character is not allowed to go into the menu, ive got this code but it always glitches, do you know of another? < Code Omitted >
How is it glitching? How are you moving your sprite (include act method code, methods used in movement and how you declare any fields used in the movement; if using a support super class, its code may be relevant also)? Every little bit of information you can give that could possibly help should be given. T
Collisions
By jennifer56, with 1 reply.
Replied to by danpost, over 11 years ago:
Just add an instance field to track the number of hits taken. When it reaches that certain value, then relocate. Steps: * add instance int field 'private int hitsTaken;' * when hit - add one to 'hitsTaken - check hitsTaken for value to relocate ? if at value - reset 'hitsTaken' to zero - relocate
How to smoothly change a background with another?
By rohwedder, with 8 replies.
Last reply by rohwedder, over 11 years ago:
Sorry I can't get it working, no image is changing or getting darker. However I got my own solution to work with an actor object
Help with level up
By adi110, with 23 replies.
Last reply by adi110, over 11 years ago:
ok thx but what about menu?? how can i create one with 3 buttons : Start (to play the game), Quit (to close the game) and Leaderboard(to save the score of each playing) ?? can you help me with this one ?
Prepare loop method
By Avast, with 6 replies.
Last reply by Peach, over 11 years ago:
thank you
Calling "Counter" from different objects
By i5-2500k, with 3 replies.
Last reply by danpost, over 11 years ago:
What is the method the Bullet uses when hitting an alien? If it calls a method in the Alien-class, show it also.
making enemies come towards the player from the side..
By jink, with 9 replies.
Last reply by hugtvy, over 11 years ago:
heres the the code to make the enemy move towards your "shooter", replace Surivovor with the name of your shooter and change the int dist to how close the shooter has to be to be followed eg: does the zombie always follow the shooter or is it only once it has come closs. hope this helps
Declaring Arrays
By ZiEiTiA, with 1 reply.
Replied to by danpost, over 11 years ago:
Please refer to
this page
of the Java tutorials.
Storing Used Numbers in a random number generation
By Mitchr101, with 4 replies.
Last reply by danpost, over 11 years ago:
@FootLongTurkey, please start a new discussion for your problem. Explain what you are trying to do, give what you have tried, explain which part you are having trouble with, etc.
drawLine(x1, y1, x2, y2) isn't drawing a line ;_;
By blankaex, with 4 replies.
Last reply by danpost, over 11 years ago:
There must be a better way to do what you are trying to do.
How to show score with number images?
By rohwedder, with 3 replies.
Last reply by rohwedder, over 11 years ago:
Thank you I got it to work with your solution... It's much appreciated :)
679
680
681
682
683
684
685
X