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
Need help with stopping an actor from still trying to execute methods after removal from game
By miahg17, with 5 replies.
Last reply by miahg17, almost 10 years ago:
Thanks for the help danpost.
How to load in multiple worlds through an array
By Jillis, with 7 replies.
Last reply by Super_Hippo, almost 10 years ago:
If you want every 1 to be sand and every 2 to be stone, then you add that in the switch: <Code Omitted>
Program slowing down from object
By DukeFutzwillus, with 5 replies.
Last reply by danpost, almost 10 years ago:
DukeFutzwillus wrote...
I think it is the image cycling. Is there a better way to do that, so that it won't slow the program?
Before having the images change with less frequency, comment out line 36 to see if it is actually the animation which is slowing it down.
is there a size limit to sound files?
By DukeFutzwillus, with 2 replies.
Last reply by DukeFutzwillus, almost 10 years ago:
Thank you
For loop creating random walls
By MJBelmer, with 3 replies.
Last reply by danpost, almost 10 years ago:
To explain the error, your line 4 it totally messed up. I cannot say whether it is trying to declare a Wall object reference field or an array that holds references to Wall objects. I think that what is on the left of the equal sign is incorrect for either declaration. The ways to declare an array legally are: <Code Omitted>Then, you would assign Wall object to be its elements:
Image transparency and collisions.
By MJBelmer, with 2 replies.
Last reply by MJBelmer, almost 10 years ago:
Ahhh so my transparency was fine it's just that Greenfoot still wants to put the image in a box so you can't have a concave area that isn't detected as part of the object. I managed it better though by taking your advice and trimming all extra area that was transparent. Thank you!
help,, how to if i get object AAA win
By ToRu_4649, with 10 replies.
Last reply by ToRu_4649, almost 10 years ago:
danpost wrote...
If you are interested, here is another way of doing it:
Can anybody show me how to remove an enemy after being shot?
By Tryxe, with 8 replies.
Last reply by Tryxe, almost 10 years ago:
It's working perfectly thanks!!!
Locking controls and Asking questions.
By MJBelmer, with 4 replies.
Last reply by MJBelmer, almost 10 years ago:
Wonderful! Just this little bit of code explains so much to me, I really love learning this... Thank you!
How to search for objects and remove them.
By MJBelmer, with 11 replies.
Last reply by danpost, almost 10 years ago:
The one at line 23 should not do anything (it should always return false). You can remove that line. The one at line 9, on the other hand, is placed okay; however, it would be better placed between lines 8 and 9 in the act method code above.
Is there a way to count objects of a specific Class, or even multiple classes?
By DukeFutzwillus, with 2 replies.
Last reply by DukeFutzwillus, almost 10 years ago:
Thank you very much I wanted to use the .size but didn't know it.
Altering variables for specific objects of one class from another.
By MJBelmer, with 2 replies.
Last reply by MJBelmer, almost 10 years ago:
Ahh Thank you! I'm still learning these concepts and how exactly to implement them. It worked perfectly thank you! Now to work on how to reset the Dragon positions and remove remaining fireballs after the score is updated. Eep!
How do I get Alien to re spawn at the top of the screen?
By dlamc, with 3 replies.
Last reply by danpost, almost 10 years ago:
dlamc wrote...
Something I should have mentioned before hand, is that when an alien touches the bottom of the screen two more have to spawn at the top of the screen then move down. How would I do something like that ?
I said you could just switch the two lines. That would be so you can add the new Alien object into the world before loosing the reference to the world, which happens when you remove the current Alien object from the world. Just add two new Alien objects into the world before removing 'this'.
Change background on collision
By DukeFutzwillus, with 6 replies.
Last reply by danpost, almost 10 years ago:
Apparently you have 'static' fields in other classes that will need to be initialized in the MyWorld class as well (to mention one, PortaltoPlanet.nextLevel).
Alternatives to greenfoot
By fejfo, with no replies.
I liked greenfoot mainly for
graphical support
collision detection
input handling
But more I have been doing more advanced things for which greenfoot isn't as good. So are there any good alternatives? I definitely want:
graphical support
collision detection (preferably even polygon collides)
a better IDEA
And I would like:
networking support
3D and full screen support
input handling
I'm probably willing to learn a new language. But I don't want something that has a big complex interface (like Unity). I still want control over basic things (like movement). any suggestions?
422
423
424
425
426
427
428
X