75. Make cutscene cleanup explicit
Cutscene skipping does not mean “execute all remaining events instantly.” Future events can be skipped. If a late event was going to hide an aura or stop a sound, an early skip may never reach it.
1. List every temporary effect the sequence starts: particles, attachment links, extra GUIs, sound channels, room tint, held blur and shake.
2. Decide the useful final state for normal completion and for a skip.
3. Keep a cleanup script outside the cutscene timeline. Call it after the cutscene finishes or is skipped.
4. Disable/hide temporary emitters, detach links that should end and stop named sounds.
5. Clear a held Zoom Blur or Screen Shake and restore the intended screen look.
6. Test skipping during the first title, during movement and while a major effect is active.
| Temporary change | Deliberate cleanup |
|---|---|
| Hand aura | Disable/hide it and release the link if the ability ends. |
| Brazier lit permanently by the story | Keep it lit and save the appropriate story state. |
| Held blur or tint | Restore the intended normal look. |
| Extra frame built as a GUI | Hide that GUI. |
| Looping effect sound | Stop its specific channel rather than every sound in the game. |
Automatic camera/HUD restoration is not a complete undo system for every scene edit. A good effect script owns its beginning and its ending.
