The Dink Network

Is it possible...

November 7th 2003, 07:51 AM
spike.gif
...to stop a midi and start playing it again later from the point it was stopped at? Or just start the midi from the scratch? (Like: Player presses escape, the midi stops. When he continues playing the midi starts playing again)
November 7th 2003, 08:27 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Sure, but not from the point it left off.

Say you push the escape button.

You would put this in first :
stopmidi();
To start it again, you simply use playmidi("midi.mid");

I just realized what your intention might be. Do you want it to start playing a midi that was put on the map but you don't always know which? If that's the case, the only solution would be to check which map number Dink is on and use conditions to select which midi will play again. It works and doesn't take that much time since you can copy and past most of the stuff.
November 9th 2003, 03:05 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Maybe it works if you load_screen(); and draw_screen(); again. I don't know when the engine checks if there's a midi attached to the screen. I think it's the loading part, but correct me if I'm wrong.