Staredit Network

Staredit Network -> UMS Assistance -> How To:
Report, edit, etc...Posted by .Coko[CK] on 2003-11-12 at 14:18:33
I am hoping to loop a single .wav file, in music format...

Conditions:
Switch 'MusicPlay' is Set
Action:
Play 'Music.wav'
Set Switch 'MusicLoop'
Clear Switch 'MusicPlay'
Preserve Trigger

Condition:
Switch 'MusicLoop' is Set
Action:
Wait 'XXX' milliseconds
Set Switch 'MusicPlay'
Clear Switch 'MusicLoop'
Preserve Trigger

But it doesn't loop, anyone help me out here? I'm ok the time limit, but it is getting it to loop that is deeming impossible!
Report, edit, etc...Posted by Mini Moose 2707 on 2003-11-12 at 16:30:05
Perhaps the player has other wait triggers running. Multiple waits running at one time probably will start interfering with each other.
Report, edit, etc...Posted by Tazzy on 2003-11-13 at 03:37:31
First, you need a computer/neutral/rescuable player that has no other triggers (or rather no other triggers that contain obstruction actions: wait, transmission, center view). Here are the two triggers, assuming Player 1 is the human player who wants to hear the music and Player 2 is the computer/neutral/rescuable player:

Owners:
- Player 1
Conditions:
- 'Music Playing' is cleared.
Actions:
- Set 'Music Playing '.
- Play 'Your Music.
- Preserve trigger.

Owners:
- Player 2
Conditions:
- 'Music Playing' is set.
Actions:
- Wait for XXXXX milliseconds.
- Clear 'Music Playing'.
- Preserve trigger.

Your Music is your music track.Music Playing is a switch, and XXXXX is the length of your music track in milliseconds. These two triggers will nearly flawlessly play the music track every cycle of XXXXX milliseconds without interfering with your other triggers.
Report, edit, etc...Posted by .Coko[CK] on 2003-11-13 at 12:27:23
Great! That worked perfectly, thanks a lot, i think it was the effect of other triggers on it that effected mine!
Report, edit, etc...Posted by Tazzy on 2003-11-13 at 13:49:45
Np coko thats what where here for
Next Page (1)