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
IsTouching issue
By Claudiu, with 4 replies.
Last reply by Claudiu, almost 4 years ago:
Thanks. Can you help me again please? I want to turn my actor(ball) with the right angle, like when it hits the wall or the brick to turn with the same angle but in the opposite direction.. but i have to know the angle between the actor and the wall it hits
how do i use a variable from actor to a world
By dedsec, with 1 reply.
Replied to by danpost, almost 4 years ago:
dedsec wrote...
i need help figuring out how to get a variable froma an actor to 9 different worlds
What is the reason for the variable? What does it represent? Maybe you just have it in the wrong place.
Changing photo from another class
By NielsProgamer, with 13 replies.
Last reply by danpost, almost 4 years ago:
NielsProgamer wrote...
So if 2 class touches 3 class i want 1 class to change image. These are all different classes. In class 1 i can change it but i need a code for if 2 class touches 3 class.
That is exactly what the code given above does. Apple detects collision with banana, which in turn changes counter actor image.
The bullet hits multiple times
By jdkdoen05, with 2 replies.
Last reply by danpost, almost 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, almost 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, almost 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, almost 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, almost 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, almost 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, almost 4 years ago:
Nevermind, I fixed the issue by using a for loop:
Boss
By Ginopinosulpino, with 9 replies.
Last reply by Ginopinosulpino, almost 4 years ago:
do you know where i can find that code
NEW Scrolling World
By jdkdoen05, with 1 reply.
Replied to by danpost, almost 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, almost 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, almost 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, almost 4 years ago:
Thank you so much for this, really appreciate it.
44
45
46
47
48
49
50
X