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
help!
By popiroprios, with 3 replies.
Last reply by danpost, about 13 years ago:
I am getting lost in your code. You are using more fields than are neccessary; you have multiple places where the actor gets re-located; your variable naming is cryptic; and you have nothing really working in your code (animation does not seem to work; I could not say what half the 'if's are checking or what their block do; you have some code that could be simplified and some variables that are useless -- count and conti). You may want to start fresh. Maybe create another sub-class of Actor called 'Mario' (with a capital M) and built it up; each time you add something, make sure it works be
Color stays same after hit, but I want to revert back to original.
By kaciedy, with 4 replies.
Last reply by kaciedy, about 13 years ago:
That makes way more sense than it did before. Thank you a lot!
Score Counter increment each time mouse clicked
By danbyization, with 9 replies.
Last reply by danbyization, about 13 years ago:
Thanks danpost that works perfect now thank you so much
Need help
By silidor, with 8 replies.
Last reply by silidor, about 13 years ago:
Dude i love you ♥ Thank you very much :)
how do you stop sounds
By Ploppy, with 1 reply.
Replied to by danpost, about 13 years ago:
If you use the GreenfootSound method to start the music, you can stop it with the corresponding GreenfootSound method (provided you keep a reference to the GreenfootSound object). However, if you use the Greenfoot 'playSound' method to start background music, only resetting the scenario will stop it (unless you have it starting in the initial world constructor, in which case it will only re-start the music).
Sounds
By Ploppy, with 3 replies.
Last reply by danpost, about 13 years ago:
The file needs to be re-formatted as that type of file (mp3). Just changing the extension of the name will cause the program that loads the file to expect a certain format for which is was not written in. Change the filename back to what it was. Open it with a music player/editor and save it in the format you wish it to be in (be sure to remove any tags that may be in the file when saving it).
Deleting object from world after mouse drag error.
By Timververs, with 3 replies.
Last reply by Timververs, about 13 years ago:
Ofcourse... Thanks vonmeth. Stupid to think i could remove the object i was working in first >.> Great help :)
How to adding level ? how to use more than one world classes?
By fajrizarmy, with 4 replies.
Last reply by fajrizarmy, about 13 years ago:
great... thank you very much danpost :)
How to detect a color underneath a transparent image.
By Minion1, with 7 replies.
Last reply by kiarocks, about 13 years ago:
Just a small note, you can upload pictures somewhere and then attach them with (without spaces).
Help!
By JellyBlobsofDoom, with 5 replies.
Last reply by JellyBlobsofDoom, about 13 years ago:
Thanks for the help though! :)
Body hits wall and bounces back?
By kaciedy, with 3 replies.
Last reply by kaciedy, about 13 years ago:
Alright, thank you both! I have it fixed.
FOR LOOP EMERGENCY
By ImASuckerAtThis, with 5 replies.
Last reply by Duta, about 13 years ago:
Oh, fair enough.
How to only detect a single key?
By Conmore, with 3 replies.
Last reply by davmac, about 13 years ago:
Also, line 13 is wrong: if(inUse = false) Should be: if(inUse == false) Use '==' for comparison, not '='. As you have it now, it always sets inUse to false.
Download problems
By CPG, with 1 reply.
Replied to by davmac, about 13 years ago:
Please read the download page, which links to
this discussion
.
I need help with for loops
By ImASuckerAtThis, with no replies.
ok hey guys, im just a student in computer science class in tenth grade, and one of our projects is to make blocks in the world by using for loops... which i have no idea how to do i mean i know how to do it ITS THE WHOLE: for ( int i = #; i< #; i++) { addObject ( new iceBlock(), 25*i, 580); thingy the image of the block is technically 25x25... but if i put it in a world (80,60,10), how would that work? how do i make a game with 28 boxes by 28 boxes on both the length and width of the world. I want it to fit properly, as in no half blocks at the edges of the world, please help mw with the four loops: give me an example question and please solve it so i can see how its done.. make it really simple......... please reply ASAP..project due in 3 days :0 }
893
894
895
896
897
898
899
X