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
plz help me..!!
By raza, with 31 replies.
Last reply by raza, over 11 years ago:
Highscore ,which located in world class,nd i wants to access it from where its permanantly stored... Nd i haven't do any code for to store nd retrieve the value bcZ i don't know how to do that..
How can I make the World use a variable from an Actor?
By therealMV, with 1 reply.
Replied to by danpost, over 11 years ago:
Maybe you should add a setter method in the world class to set the value of the room variable: <Code Omitted>Then, in your Joe1 class, you can (instead of 'room = 1.4', for example) use: <Code Omitted> Using just 'room = 1.4;' you are only changing the local variable in the method, not the value of the field in the 'fearmine' class.
_#How to make actor move left & right like space invaders
By neesan, with 4 replies.
Last reply by xWanna, over 11 years ago:
You have to read out the coordinates first. <Code Omitted>And so on
Using the arrow keys to play a music file
By HTown_Diva, with 6 replies.
Last reply by lordhershey, over 11 years ago:
Oh I think I misunderstood - Greenfoot.getKey() can be null thus calling compareTo on it would cause an exception.
Help Needed! Button clicking
By TheGoldenBucket, with 3 replies.
Last reply by danpost, over 11 years ago:
You could code it this way to act on a specific mouse button: <Code Omitted>
I have more problems than thought ^^'
By Yurey, with 18 replies.
Last reply by danpost, over 11 years ago:
Yurey wrote...
can u write me a code with the necessary methodes i dont have that high level programming skills ^^'
It would be the opposite condition to what you have in line 3 in your last code post.
keep the score even the world is resetted
By listiliz, with 3 replies.
Last reply by danpost, over 11 years ago:
There is no problem with calling the prepare method programmatically. Is there a question or problem with what it became ( "i tried this, but it becomes>" )? Explain the issue (how it is not right and what right is).
Can't insert background music into the world (file not found)
By Allhard, with 10 replies.
Last reply by danpost, over 11 years ago:
In the MainMenu class, remove the 'bgmp' field and both the 'musicstart' and musicstop' methods; then change 'act' to 'started' and 'private GreenfootSound' to 'public static GreenfootSound'. Finally in the 'act' method of the takemehome class, change line 5 to: <Code Omitted>
How to make camera slowly fallow actor
By Dudeson, with 3 replies.
Last reply by Super_Hippo, over 11 years ago:
I can't correct your code without seeing what you tried.
Creating a Button in inherited class
By opna, with 1 reply.
Replied to by Super_Hippo, over 11 years ago:
You would create a subclass of this class. I think it will look like this: <Code Omitted>Make sure that you uncomment the act method.
How do i make a score board pls help
By dj_cammy-ron-man, with 2 replies.
Last reply by azazeel, over 11 years ago:
http://www.pembinatrails.ca/fortrichmondcollegiate/compsci/greenfoot/levels/default.htm let us know your progress
How do you make countdown timer?
By Allhard, with 3 replies.
Last reply by danpost, over 11 years ago:
You are counting act cycles (which is better from a game-playing perspective -- not real time. Divide time by something line 55 (the approximate number of act cycles per second) for showing the text.
problems with this pls help me :D
By Yurey, with 9 replies.
Last reply by danpost, over 11 years ago:
I see no issues with the code given.
Scenario downloads
By fdw, with 1 reply.
Replied to by davmac, over 11 years ago:
fdw wrote...
Can you download scenarios besides the existing ones?
... No, it is not possible to download scenarios that don't exist. :p
Greenfoot Hitbox
By craeXD, with 4 replies.
Last reply by danpost, over 11 years ago:
craeXD wrote...
What am I doing wrong? I just want a circle/field around my Boss.class (not actor), where the bullet (P9mm) hits. Not only the body-part of it.
For a circle/field, use the 'getObjectsInRange' method. For around your Boss.class, code it in the Boss class. For bullet hits, look for Bullet.class.
570
571
572
573
574
575
576
X