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
The bullet hits multiple times
By jdkdoen05, with 2 replies.
Last reply by danpost, over 4 years ago:
I believe line 40 should be outside the method.
Greenfoot(3.5.4) source code
By Roshan123, with 4 replies.
Last reply by Roshan123, over 4 years ago:
Somehow I managed to download it by using an alternative way. Don't know why it still doesn't work on my device.
Error greenfoot.ActorRemovedFromWorld fix?
By asiwi, with 3 replies.
Last reply by AbdulrazaqAS, over 4 years ago:
I just got the error and after trying the solution provided, it worked. Thank you.
GreenfootImage: Drawing Strings on JPGs vs. PNGs
By lehrerfreund, with 4 replies.
Last reply by lehrerfreund, over 4 years ago:
danpost, you are right, I am using macOS. Have to try it on Windows. Thanks for you support!
Remove actor from world
By NielsProgamer, with 3 replies.
Last reply by NielsProgamer, over 4 years ago:
Thanks! it works. Didnt think about that.
Checking if 2 Strings are equal
By Kwantum, with 3 replies.
Last reply by Kwantum, over 4 years ago:
Ah, thanks. This helped me understand the problem and I managed to fix it!
Area Damage Help
By s1ice, with 2 replies.
Last reply by s1ice, over 4 years ago:
Nevermind, I fixed the issue by using a for loop:
Boss
By Ginopinosulpino, with 9 replies.
Last reply by Ginopinosulpino, over 4 years ago:
do you know where i can find that code
NEW Scrolling World
By jdkdoen05, with 1 reply.
Replied to by danpost, over 4 years ago:
For the above class: See methods at lines 154 and 157. To up speed by one:, use: <Code Omitted>or set it to any value (here, 3): <Code Omitted> However, I suggest you use the
Scroller
class linked to the demo and support class scenario discussed in your previous discussion. It is, in itself, a complete, re-usable support class that can be used for every type of camera movement. Also, it requires no modifications to your
Actor
subclass codes (even if actor is the one the camera follows).
writing in red
By divinity, with 4 replies.
Last reply by RcCookie, over 4 years ago:
Error output should always have the form <Code Omitted>This is supposedly help you identifying the error. The top location line tells you the exact location where the exception occurred. It should be highlighted as a link and you can click on it which will redirect you to that place in your code. Common exceptions are: NullPointerException - trying to access a method of field from a null value ArrayIndexOutOfBoundsException - Trying to get an element from an
TEXT ANIMATION
By 31n5t31nn, with 1 reply.
Replied to by RcCookie, over 4 years ago:
Creating
animations
is very difficult in Greenfoot because you have to do all scaling, drawing and updating manually. But for a simple button you could use something like this: <Code Omitted>If you need more than one button you m
Irregular Object Collision
By s1ice, with 3 replies.
Last reply by s1ice, over 4 years ago:
Thank you so much for this, really appreciate it.
When the object spawns, the game pauses itself.
By Kwantum, with 4 replies.
Last reply by danpost, over 4 years ago:
Kwantum wrote...
There is no error message, it just pauses the simulation.
Please provide full
Boomerang
class codes. Also, please provide full
Items
class codes. As well, please provide a little insight as to when a boomerang is to be created. If an actor type throws it, specify which type a how that actor plays a role in your scenario.
Problem in Greenfoot website
By Roshan123, with 4 replies.
Last reply by Roshan123, over 4 years ago:
Deleted the scenario....No more problem!
Determining who's in first place (with interesting conditions)
By s1ice, with 8 replies.
Last reply by s1ice, over 4 years ago:
I've worked on a Tower class now, and I put this code in the determiner function, and it seems to be working well: Pie is the enemy class I talked about earlier.
45
46
47
48
49
50
51
X