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
remove an intersecting object
By Claudiu, with 18 replies.
Last reply by Claudiu, over 6 years ago:
I have a queston. if i make a game can i publish it somewhere instead of greenfoot site?
If the mouse is clicked, place a new image
By DaRafster, with 2 replies.
Last reply by DaRafster, over 6 years ago:
danpost wrote...
The getWorld method returns the value of the field: <Code Omitted>in the Actor class: <Code Omitted>The field is used to indicate what world, if any, the actor is in. While the actor is not in any world, its value will be set to
null
. Once you execute line 26, which removes the button from the world, the button loses its reference to the world it was in. So, it would be impossible to add an object into that world at that point. Either add the object into the world before removing the button or s
int in showText
By Yoshi21137, with 27 replies.
Last reply by Yoshi21137, over 6 years ago:
It works now. Thanks for helping me and for staying with me for the 3 days you did!
Trying to create a blinking image
By DaRafster, with 3 replies.
Last reply by danpost, over 6 years ago:
Basically: <Code Omitted>
How do you add 1 point every time an actor touches instead of it rapidly adding points while it's already touching?
By Adrian2004, with 3 replies.
Last reply by danpost, over 6 years ago:
Add a field to contain a
Point
object and set it to any touching
Point
object. Also, set it to
null
if not touching any
Point
object. Only score if field does not contain the
Point
object it currently touches.
Need help with highscore system and a fix
By BalanZeD, with no replies.
Hey, I'm new to Greenfoot and need to finish my Game. I would like to add a highscore which is saved and everytime a new highscore is achieved the backround should be switched. that is all it should do and i really need your help. I have another problem in my scenario. I uploaded it and please check it out. I want to switch something. I want that the "Flappy2" in the "bg" subclass is flying faster than the "Flappy" in the Background subclass but it only works if i click reset and then new Background. But if I start this scenario the "Flappy" is flying faster than it should. Only the Flappy2 should fly faster in its world (bg) and I dont want to click reset and new Background everytime. I wanted to know if there is a solution. Thanks !
Need help with highscore system
By BalanZeD, with 4 replies.
Last reply by BalanZeD, over 6 years ago:
I'm really sorry for wasting your time. I have a present for you as well if you could help me here ;D
How do I delay a line of code?
By footpickle, with 7 replies.
Last reply by footpickle, over 6 years ago:
I found out another solution, but it now disables the feature that removes the bomb when it runs out of life out goes off the edge of the world. all it does is changes the image, I have no idea why it would make the bomb exist longer
Bullet doesn't fire. It just stays where it is and then causes and error.
By footpickle, with 33 replies.
Last reply by danpost, over 6 years ago:
footpickle wrote...
Erm... I'm sorry but I literally have no money. :/
Double of nothing is nothing.
Setting an Image if "left" and "right" keys are not pressed
By DaRafster, with 3 replies.
Last reply by danpost, over 6 years ago:
DaRafster wrote...
I've played around with "else" before I posted this discussion, couldn't figure it out. I managed to do it with the right arrow key, but I couldn't manage to do it with the left arrow key. On my second attempt, it was the other way around. May you please demonstrate what conditions I could put in my else statement in order for me to achieve this?
Please show what you tried.
wait() doesn't work
By Mato, with 3 replies.
Last reply by danpost, over 6 years ago:
Mato wrote...
And should I use wait() , wait( long ) or wait( long, int )?
Neiither. You should never use
wait
. Use
Greenfoot.delay(int)
.
need help
By Starlord_20, with 7 replies.
Last reply by danpost, over 6 years ago:
Starlord_20 wrote...
if i do, it summons again after clicking act()
-- whether you do or not.
Using Greenfoot classes outside of Greenfoot
By MrBradley, with no replies.
Is it possible to make use of the GreenfootSound class from BlueJ? I have added the greenfoot/extensions/greenfoot.jar file to the library path, and it compliles fine, but it appears that there are other classes that need to be initialized in advance. Thanks
Circle image becoming square when scaling
By tudibk, with 3 replies.
Last reply by danpost, over 6 years ago:
tudibk wrote...
I dont really understand why it worked, but it worked ;)
It worked because it does not scale an image that has already been modified by scaling. Scaling slightly distorts an image, usually not noticeably. However, multiple scaling of the same image will compound that distortion and make it quite noticeable.
Enemy with healthbar
By Yoshi21137, with 5 replies.
Last reply by danpost, over 6 years ago:
Yoshi21137 wrote...
What do you mean by << Quote Omitted >>
To give a simple example: <Code Omitted>Here is an
Actor
subclass that describes something that slowly spins in place. The
angle
field, though initially set by the rotation of the actor, will have a value that does not change. There is no permanent link between the actor's rotation and the value of the field.
and what about << Quote Omitted >>
Just that
144
145
146
147
148
149
150
X