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
Enemy explosions / general explosions
By dbz3396, with 5 replies.
Last reply by danpost, over 12 years ago:
Ok. This would work the same: <Code Omitted>
Making my piano switch sounds after clicking the button
By Noviij, with 7 replies.
Last reply by Noviij, over 12 years ago:
That worked. I was putting "{" instead of the "(" so it wouldn't compile. Thank you very much!!!
When I resize an object it acts the same
By qwertyuiop, with 9 replies.
Last reply by qwertyuiop, over 12 years ago:
I think I fixed it just by swapping out the order of 2 methods. So now it checks and sets the image before checking collision.
Linking one actor to other
By Rishav_Agarwal, with 3 replies.
Last reply by Rishav_Agarwal, over 12 years ago:
Thanks Danpost!!
Help with enemy code
By GamesGrinder1998, with 3 replies.
Last reply by danpost, over 12 years ago:
I need a harder task; and you need to ask a harder question. However, I should probably have just written
Just use 'setLocation' instead of removing the shot actor and adding a new one.
Using greenfoot for challenging problem solving
By MarcoServetto, with 10 replies.
Last reply by danpost, over 12 years ago:
I believe that if you made that world class a private inner class of another world, actors and other worlds would not be able to create one directly. Only the class it is in will be able to directly create one. As far as reflection and other metalinguistic features, security managers and framework structure -- I must truthfully state that I know little about them in regards to how they can be manipulated (or hacked).
MoveToGround Error
By Greenfootnoob, with 6 replies.
Last reply by danpost, over 12 years ago:
Look at the end of your line 3 above. You end it with a forward slash. That cannot be right. All command lines should end with a semi-colon -- ";". BTW, this has nothing to do with greenfoot; this is Java syntax. This is covered in the Java tutorials on
this page
.
Actor only jumps once
By Greenfootnoob, with 1 reply.
Replied to by danpost, over 12 years ago:
I do not understand why there is a need for both the 'onGround' boolean AND the 'jumping' boolean. Does not the following always hold true? onGround == !jumping or this? jumping == !onGround Having both fields just complicates matters. Anyways, I did not see anywhere in the code where 'jumping' is set back to 'false'; so, the condition on line 17 will not ever again be 'true'. Thus, only jumps once.
change image on mouse over
By Mimagic, with 1 reply.
Replied to by danpost, over 12 years ago:
Any one of my latest scenario has a button with mouse hovering image changing. You do not even have to download them to see the code. You will find the button Actor code within the main worlds of each of them except the newest one, which is in the Menu world (the
UserInfo Jumbo Maze Demo
scenario).
Rotating Objects?
By allyand17, with 4 replies.
Last reply by allyand17, over 12 years ago:
Thanks!
Uploading a scenario
By thekidj, with 1 reply.
Replied to by davmac, over 12 years ago:
Click the "share" button from within Greenfoot.
I keep on getting "can't find symbol" error on the "Cansee(fly.class) ))"
By youresocool, with 1 reply.
Replied to by danpost, over 12 years ago:
Unless you wrote or added the 'Cansee' method to your class (or a superclass of that class) yourself, you will get that error. There is a 'canSee' method in the Animal class (lettercase is important). If this class extends that class than use 'canSee' (not 'Cansee'). If not then, you need to either add the Animal class and have this class extend it, or add the methods to this class to do what you want.
Toggling a variable
By qwertyuiop, with 2 replies.
Last reply by qwertyuiop, over 12 years ago:
Thanks that gave me the idea of using an int variable that will change depending on the power up gained and it is working.
Help me please
By skreamone, with 2 replies.
Last reply by JasonZhu, over 12 years ago:
I suggest you ask for online help rather than a finished project. I know this is a school project and I'm sure you could figure it out with help. I have finished the project and I'm willing to offer you help.
Scrolling world for Shoot em' Up
By mcGreen, with 2 replies.
Last reply by mcGreen, over 12 years ago:
Yeah, I decided to try something little less complex. Thanks for your help anyways.
705
706
707
708
709
710
711
X