-
Music Intro
Have anyone ever bothered to make a quick song intro before the real song starts in a level? You hear this very often in Super Mario, and I think I want aswell, if its possible.
What I want is to make the background music to play and loop right after the intro file is finished. I have two media files, that in theory will fit to each other, but the way I tried to do this, MMF made a delay before starting the real music so you hear a clear silence between them. I think I did something like
Start of Frame
- Play Sample Intro
Sample Intro is not playing
+ Timer is greater than 1 sec
+ Only one action when event loops
- Play and Loop Sample BGmusic
As mentioned, this results in a silenced delay before the BGmusic starts to play. I can tell its not the music files that have a silence, Ive gone on a school for a few years that teach us these kinds of stuff, so I know how to make a "perfect", or at least fully loopable music file.
Example:
http://www.vgmusic.com/music/console/nintendo/snes/smas50.mid
The beginning of this song (from Super Mario Bros. 2) only plays one time in Mario. When the song is finished, it jumps back a few seconds into the song. Any suggestions on how to do this in a MMF game?
-
Re: Music Intro
Thats cool man! thanks for the input, i may be able to use this myself ;)
-
Re: Music Intro
The silent delay was caused with the OGG file though the method was tested.
Can a perfect connection be achieved with the OGG file?
-
Re: Music Intro
Heh, maybe I wrote this wrong :P What I meant to say in this thread is that I have an issue. My method is not working.
-
I dont know if its possible to make a perfect connection, but when the BG music is on loop, I cant hear anything wrong. I also remember from a previous game that I had about the same method. In the beginning of the level, it was a lot of boxes you could shoot at that splattered into 25-30 small pieces each. When I destroyed 3-4 of these boxes at once, and the intro was done playing, it could take almost a second before it continued on the loop BG music.
-
Re: Music Intro
This method is wrong method?
-
Re: Music Intro
This method is the one I used, but since I forgotten to ask for suggestions or tips in the end, I can see the confusion. This method does not work because most likely, MMF is not fast enough to notice when the intro song is over. The time MMF uses to notice "Intro is not playing" and then "Play and Loop Sample MusicBG" makes a disturbing silence.
What I was hoping for in this thread is a solution on how to add these small intro songs before the real song. Maybe an extension or something thats made for just this.
-
Re: Music Intro
Oh, my bad! :grin: maybe try adding the actual stage music after x amount of seconds. like say your intro song is only 0:04 long, if you want the pause, just add and event saying:
Timer equals 0:05 > Play sample "stage music"
if that doesnt work you could always just add the stage music to the actual intro song itself. there are a few different programs out there to let you edit audio, a good one to try would be goldwave. i use that to record my music with. only problem is the download is a demo only, so im not sure how much you would be allowed to use time wise. maybe after you combine the 2 tracks add an event that loops when the stage music part of the song starts.
-
Re: Music Intro
EDIT: Just found out this method doesn't eliminate the pause. I just tried the timer method and got it to work.
Instead of saying timer is greater than a certain amount, I would say this:
Start of Frame
-Play sample Intro
Then another condition.
Is Intro not playing
Is Main Song not playing
-Play and loop Main Song 0 times.
-
Re: Music Intro
I got stuff to add the two files together into one, I just though it would be easier to have two separate files. But if such event works, that kinda "removes" certain seconds from a file and loop the rest, that would be perfect... But I doubt it..
-
Re: Music Intro
FlinkGigitty(he,he,allllrighhtt!! gigitty) family guy is awesome. are you by chance making a fan based mario game? if so do you have a vid or anything showing it off yet? i'd like to check it out :cool: