![]() I know I asked a lot of questions but I honestly appreciate any help I can get with this project. If MainMenuWorld starts playing "song1" and I click the play button which setWorld's Level1, how do I stop the music from MainMenuWorld? Should I be creating a Music actor that somehow plays the sounds? OR do I have to stop the sound before progressing to each new level? If so the problem is that there are many sounds playing at the same time and you only stop one of them. Green noise, sometimes described as 'the background noise of the world,' can help you relax and get some sleep, and may alleviate the effects of tinnitus. For each level however how am I supposed to STOP the current sound playing? ![]() Most files of the following formats are supported: AIFF, AU, WAV, MP3 and MIDI. The sound cannot be played several times simultaneously, but can be played several times sequentially. A GreenfootSound loads the audio from a file. For the first (main menu) I suppose I could just run it in the world class. Represents audio that can be played in Greenfoot. ![]() I want my sound file to play only when the new world is loaded. Also you may want to fix line 47 if you want random number from -5 to 5 it should be: int newX Greenfoot. My main question is for what I'm working on right now. You have aysound ('fallenthing.wav'), It should be aySound ('fallenthing.wav') (Note that the 'S' in sound should be capitalized). This was how I saw my game being created, if you have any suggestions or objections to how I should be running it please tell me. When this new world loads it will populate my world according to where I want all my actors placed. When a world is completed I will be using the setWorld command to load a new one. My main question is how I should be organizing my game and where I should be initializing the sound.Ĭurrently I have a new world for each level. I've started creating a Platformer game and decided to implement music.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |