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
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
Switching and scaling sprite images in a Constructor
By earnold, with 1 reply.
Replied to by danpost, over 6 years ago:
earnold wrote...
what the best way to both switch and scale images in a constructor.
You would only set one image in the constructor -- never switch (although setting one will replace one, I would not call that switching).
I'd like to know the BEST way to keep all of the sprite images scaled or reduced down during a game.
Am I correct in saying you mean the following? "I'd like to know
how
to keep all of the sprite images scaled or reduced down during a game." Because whatever works along with everything else is good. Because there is not much t
How do I make a scrolling world go sideways?
By footpickle, with 2 replies.
Last reply by footpickle, over 6 years ago:
It doesn't matter anymore. I figured it out, but thanks anyway.
Spawning an Actor randomly inside a certain Area
By JacobM2612, with 1 reply.
Replied to by danpost, over 6 years ago:
A coordinate value would begin with the lowest value to spawn at. The random additional amount would be the highest value minus the lowest value plus one.
Explosion
By Hundmat, with 2 replies.
Last reply by Hundmat, over 6 years ago:
Okey thank you :)
incompatible types: java.lang.Class<dino> cannot be converted to greenfoot.Actor
By Levantaj, with 4 replies.
Last reply by Levantaj, over 6 years ago:
It's working properly now.
Can't stop updating text
By Levantaj, with 3 replies.
Last reply by Levantaj, over 6 years ago:
Thanks!
144
145
146
147
148
149
150
X