Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

End Score


Recommended Posts

Okay. At the end of my level when it starts calculating the end score, it constantly subtracts 50 from the bonus amount and adds 50 to the score.

Now, I wanted a sound to be looped while this was happening so I told it to play a sample every 00"-15. This works, but it waits 15 1/100 of seconds until it starts the looping process. Is there a way to work around this?

Thanks =)

Link to comment
Share on other sites

...That's exactly how I thought you were doing it.

This is what I meant to do.


= "0" > 0
+ "Sign" : Internal flag 2 is on
+ Only One Action When Event Loops
~ Play sample StatPoints (4)
[/CODE]

Add that in addition to the one that loops the sound. This way, the event I shown will make it play once at the beginning before the 00"-15 loop starts and then after that your sound loop will take effect. This should definately work. It does for me anyway.

  • Like 1
Link to comment
Share on other sites

Long time since I did anything in MMF. This should work however.

- [internal flag 2 is on]
+ [Only one action when event loops]
[Timer] : Set Counter to 15

- [Timer = 15]
[Timer] : Set Counter to 0
[Play sample StatPoints (4)]

- [internal flag 2 is on]
+[Counter > 0]
[Counter] : Subtract 50 from Counter
[Player] : Add 50 to score
[Timer] : Add 1 to Counter[/CODE]

The 'every' events in MMF are not reliable, since they are based on a modulation of the built in timer; meaning that the wait before an [Every 01"-00] event varies between 0 to 1 second.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...