| 10-23-2007, 09:22 AM | #1 |
How do you skip cinematics? Like how you press Escape during the cinematic to completely jump over it. Please help. |
| 12-07-2007, 05:08 AM | #2 |
its a trigger, but I'm not sure which. i do believe its clearly labeled but also that its a pain in the ass to make. |
| 12-07-2007, 10:48 AM | #3 |
The concept is simple, but it takes a lot of work. Let's say you have a cinematic trigger which, when it runs, it plays a cinematic: it goes into cinematic mode, moves units and cameras, displays dialogues etc. Then you need a second trigger which is initialy turned off and is then turned on when the first trigger runs. This second trigger is the cinematic end trigger: it goes out of cinematic mode, moves all the units to their final positions, resets the game camera and other stuff like that and in the end, turns itself off. When the first trigger finishes, it runs the second trigger. However, the second trigger also has an event "player skips a cinematic" (which means player presses esc) so it can run on it's own anytime during the cinematic (not before or after, because it's turned off at that time) if a player presses escape. Now comes the boring part: we must make it so that if the second trigger is activated by it's event while the cinematic is still running, it must stop the first trigger from doing anymore stuff from that point on. The only way to do it is to have a boolean variable, set it to false when the cinematic starts (when the first trigger runs) and then set it to true when the second trigger runs. Then, in the first trigger, after every wait action, you need an if-then-else to check if that variable equals true; if it does, then a player has pressed esc during that wait (thus running the second trigger) and the first trigger must skip all actions from that point on. |
| 12-07-2007, 11:11 PM | #4 |
plus u gotta make sure the units are in the correct place when it ends. i don't think you said that all though i didn't read very carefully. |
