| 02-26-2009, 04:36 PM | #1 |
I was trying to figure out if it was possible to pause & resume music whenever a user click alt+f4 Let's said a cinematic have been watch for about 2 minutes 36 seconds while the music last about 5 minutes, the user suddenly click alt+f4 to freeze the cinematic. Of course, the cinematic might have been freeze but not the music. As far I known, the music still goes on during the moment. So if we are creating a precise timing cinematic, the music might probably end before the scenario does. So, if a user press alt+f4 and let the cinematic be pause about 20 seconds. The music would be ahead of the action by 20 seconds as well. The main question is, how to keep the music at the same lenght whenever a user click alt+f4? I was thinking if it was possible to do that. |
| 02-26-2009, 04:53 PM | #2 |
No, I don't think it's possible. |
| 02-26-2009, 05:05 PM | #3 |
Ouch, it would be really cool if this feature was possible. |
| 02-26-2009, 08:44 PM | #4 |
Can't you use waits and a timer to see if game is paused? |
| 02-26-2009, 10:06 PM | #5 |
But they don't run, no? |
| 02-26-2009, 10:25 PM | #6 |
You know Alt-F4 closes the program, right? |
| 02-26-2009, 10:27 PM | #7 |
no it only brings the "close game"-dialog up... |
| 02-27-2009, 01:38 AM | #8 | |
Quote:
= check |
| 02-27-2009, 02:17 AM | #9 | |
Quote:
Wait ain't accurate and would it really resume the music? Let's said the cinematic was pause after 2 minutes 40 second and the music have goes on about 2 minutes 40 second as well, would it resume from 2 minutes 40 second of the music play or would the music back to where it started? |
| 02-27-2009, 03:16 AM | #10 |
Why are you trying to kater to players who want to quit your cinematic? x-x. There is no good way to do this; unless you want to inject new commands into WC3 <waits throw off accuracy forever, timers will not allow you to control music well> |
| 02-27-2009, 03:29 AM | #11 | |
Quote:
Incase player wanna afk for a moment such as going to get a drink from refrigerator or to toilet, they not only able to pause the cinematic but the music as well so the scenario they watch would match with the music even it have been pause for a moment. |
| 02-27-2009, 03:42 AM | #12 |
So make it pause it when they press Escape? |
| 02-27-2009, 04:06 AM | #13 |
but it was impossible to resume the music afteward. Let's said the music have run about 1 minutes 20 second and been pause at the moment. Would the music resume from where it have been play or started back at 0 seconds? Also, esc was use to close cinematic. |
| 02-28-2009, 08:26 PM | #14 |
I am thinking about it AND I maybe find solution. (it is very long job to do this) Like at start of every trigger (if using GUI exiting timer system) make action Play music from offset (and here, you must manually set the proper seconds, you must have the all Timers before listed, and it will be easier) But I dont know how it will sounds like. Or, if the event Time elapses is X seconds is counting also with seconds in that ALT+F4 table, it can be like For every new triger, turn also one triger like this one E:Time elapsed is greater than XY (XY is the seconds, it really should take without that alt+f4 thing, like it should take 30 sec to this trigger normally, but it was paused, so another 5 sec, XY is of course real variable, which you will have to set depenging of cinematic time) Well, that event doesnt exist, but you can solve it out, that not the problem A:play music from offset (and like before) turn this trigger off This second option is more complicated and maybe will not work (if the time elapsed is paused when the game is paused by alt+f4) but if it works, it will not make the music play from offset every one trigger, but only if the time elapsed is not equal to time it SHOULD be elapsed. I dont know. I dont find any logical error yet in this |
| 03-01-2009, 12:13 AM | #15 |
Can't you use PauseMusic/ResumeMusic?? |
