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
if condition meant to prevent out of bound mouse error
By LewisEro, with 2 replies.
Last reply by LewisEro, about 6 years ago:
adding mouse != null worked perfectly! im not entirely sure what you mean by the second part, but left mouse is already assigned to throwing a boomering currently, which is why i specifically wanted to use space instead for using spells in general. thanks dan
Change variable in world from actor?
By whattheheck, with 1 reply.
Replied to by danpost, about 6 years ago:
You need to bracket (parenthesize) what is being typecast to
MyWorld
if you are to access a member (field or method) of the class on the same line: <Code Omitted>
Dealing damage to Enemys
By Zyrtex1, with 6 replies.
Last reply by Zyrtex1, about 6 years ago:
okay thank you for your help! It works just as I wanted!
Help: it doesn't spawn an enemy when my score = 4
By Inothar, with 4 replies.
Last reply by Inothar, about 6 years ago:
I found it by myself, thank you so much <3
Color error
By HelpMehCode, with 4 replies.
Last reply by RcCookie, about 6 years ago:
Hello again, I made a small mistake; take this Code: <Code Omitted>
Need help
By Handgottes, with 3 replies.
Last reply by Handgottes, about 6 years ago:
thank you very much, I will try this
need help with my scoreboard
By Ac951, with 1 reply.
Replied to by RcCookie, about 6 years ago:
Could you please stop spaming the discussion?!
Asking for a command
By HarveyP30, with 3 replies.
Last reply by HarveyP30, about 6 years ago:
Thank you for helping!
Jumping Physics
By SnowFlurry, with 2 replies.
Last reply by SnowFlurry, about 6 years ago:
Oh I see, thank you! The demo was very helpful.
Pong Score not working
By Sakura.Waifu, with 2 replies.
Last reply by RcCookie, about 6 years ago:
Well basically you could use a setup like this: <Code Omitted> This code basicall
adding omnidirectional attack animation
By LewisEro, with 1 reply.
Replied to by RcCookie, about 6 years ago:
Hello Lewis, the problem with your code is that if the mouse is clicked at all both if-statements will be true. That means that the image is first being set to left or right but immediatly after that to up or down. Try this one:
Moving Background
By RcCookie, with no replies.
Hey guys, I´m currently trying to implement a camera package that allowes to show a part of the world. I´ve got the Actors moving across the screen in their relative position to the selected one and now I´m trying to get the background image moving, too. Unfortunatly I just can´t get it to work, it just draws a weird shape of images layed onto each other on the screen and the part that is actually moving only moves in 45°-angles. I did not use the move method but only setLocation, and I´ve got no idea how to fix this. I would really apreciate it if someone could tell me how to simply draw the background image at an offset position. Here´s the code I used so far (h is the Actor the camera shoud look at): <Code Omitted> Thanks for any help! RcCookie
Cycle Character Animations based on Distance traveled?
By LewisEro, with 2 replies.
Last reply by LewisEro, about 6 years ago:
worked it out, thanks!
Attacking in 4 directions
By Zyrtex1, with 3 replies.
Last reply by Zyrtex1, about 6 years ago:
Ok nice now it switches the pictures to the actor doing the attack.
shooting
By bangtan, with 7 replies.
Last reply by danpost, about 6 years ago:
In the shoot method you already have, replacing all codes after the first "else" except the last 2 lines.
135
136
137
138
139
140
141
X