This site requires JavaScript, please enable it in your browser!
Greenfoot back

What is happening right now?

danpost

reply to Help with error! (World Switching)

By danpost - about 1 hour ago
If there is only one healthBar object in each of your worlds, then you can change lines 21 and 22 of the Meteorite class to this: <Code Omitted>You can do similarly to lines 15 and 16 of the Ball class if you only have one Counter object in each of your worlds.
Ozan31

reply to How do i make a delay when shooting

By Ozan31 - about 2 hours ago
Thanks for that, i appreciate your help.
danpost

reply to Coordinates from another class

By danpost - about 2 hours ago
Use the 'getObjectsInRange' method: <Code Omitted>The above line will have its block of code execute if any are in range.
ChessMaster123

reply to How to add counter, I have imported class counter (New to greenfoot)

By ChessMaster123 - about 2 hours ago
Wow! Thanks guys! It really worked you really saved me! Maybe we could play chess some time.
danpost

reply to Wheres my error?

By danpost - about 2 hours ago
Remove the entire 'hitplane' method.
danpost

reply to How to set up a currency class and counter?

By danpost - about 2 hours ago
Alola_Sandslash wrote...
Yeah but I don't know which methods would be the cleanest. Also I am having trouble calling methods from other classes, is this necessary?
Not if you keep everything about the currency in your world class and use a simple actor object to display the currency. Please refer to by Value Display Tutorial scenario.
danpost

reply to Creating a world with resized images

By danpost - about 3 hours ago
alittleteacher wrote...
I am trying to resize an actor when the world is created, but I cannot make it happen. I have tried putting the resizing code in the constructor for the actor, but it will not work.
Please show what you tried.
Additionally, I cannot call a "resizing" method from the World superclass because one method is static and the other is not.
More details, please. Would be nice to know what methods, exactly, you are referring to.