I am trying to loop music in my game. I looked at the tutoral about it and did everything it said. But for some reason its still not working. Here is what I have so far:
| Trigger |
| Description: |
| Looping music |
|
| Players: |
| ¤ Player 3 |
| Conditions: |
| ¤ Current player has suffered exactly 0 deaths of Music Switch. |
| Actions: |
¤ Modify death counts for player 3: Set to 1 Music Switch.
|
¤ Wait for 1 milliseconds
|
¤ Modify death counts for player 3: Set to 0 for Music Switch.
|
¤ Wait for 12000 milliseconds.
|
| ¤ Preserve Trigger. |
That is for the unused player. This is for the human player:
| Trigger |
| Description: |
| Human Trigger for Looping Music |
|
| Players: |
| ¤ Player 1 |
| Conditions: |
| ¤ Player 3 has suffered exactly 1 deaths of Music Switch. |
| Actions: |
¤ Play "Sandstorm clip.wav".
|
| ¤ Preserve Trigger. |
What happens is the music only plays once in the beggining and will not loop again. Can someone tell me what I did wrong?
[right][snapback]175579[/snapback][/right]
Not trying to be rude, but...
your main problem: You didn't analyze your trigger.
-You didnt reset the switch(condition, a.k.a. Deathcount) so that
the trigg to set music to play again would work.
What you did is a common problem, i dont really like the other way above this post. It's less effecient, you can't use it(as shown) if you don't want music to loop forever. The trigg at the top is better, but since your happy with what you have that's fine, figured i'd just tell you your problem.