This site requires JavaScript, please enable it in your browser!
Greenfoot back

Kartoffelbrot's Comments

Back to Kartoffelbrot's profile

Is that elevator music from LEGO STAR WARS III?
No problem. If you want to play only a single sound you can use Greenfoot.playSound("soundfile.wav"); , too. With GreenfootSound you are able to play music in loops, too.
I hope in the next week.
@ sashio: like some classes (for example the gates)
Amazing graphics!
Oh, I didn't see it.
You can play every MP3, WAV and some other Sound files with it. GreenfootSound sound = new GreenfootSound("Your_Sound_File.MP3"); sound.play(); You have to place the music/sound files into the sounds folder in the project.
I mean setRotation(rI+45); in line 8
public void turnToMouse(){ MouseInfo m = Greenfoot.getMouseInfo(); turnTowards(m.getX(), m.getY()); double r = getRotation()/45; int rI = (int) r; if(r-rI>0.5) rI++; setRotation(rI); } Did you make it that way? }