The Daily Click ::. Forums ::. Klik Coding Help ::. MIDI question
 

Post Reply  Post Oekaki 
 

Posted By Message

Dave S.



Registered
  26/09/2003
Points
  924
19th May, 2004 at 17:04:32 -

Nearly finished my snake games... just need some MIDI advice.

At the start of frame 1, the MIDI file plays. When the game is over and 'escape' is pressed to restart the frame, the MIDI file starts from the begining.

Is it possible to let the music (MIDI file) continue until it has finished, even if the frame restarts?

I know people will get sick of it after a couple of plays anyway (I've included an on/off switch) but I think it would be nicer.

Thanks, Dave S.

 
n/a

Max



Registered
  02/01/2002
Points
  1570
19th May, 2004 at 17:16:08 -

Instead of using a "Start of frame" condition to play your MIDI file, use the "No music is playing" condition. Whenever your MIDI file won't be playing, it will play it. However, you should also add an extra condition to stop the event from triggering if the player don't want the music to play.

 
Swim with me into your blackest eyes.
http://junkman.vze.com

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
19th May, 2004 at 17:23:45 -

Make sure 'Play samples across frames' is ticked in Runtime properties of MMF. If TGF, you can't do it, unless you use MCI.

 
- Tigerworks
   

Post Reply



 



Advertisement

Worth A Click