Features
- Add Camera cutscene effect to pan the camera
3f488fd008Adds a new "Camera" sub-effect to the Cutscene Effect combo type. When triggered via '->ComboType Effects', the camera smoothly pans to a target position, then fires 'ComboType Causes->' once it finishes.
Configurable options:
- Subtype: how the target position is interpreted
- Relative to Combo: offset from the combo's center
- Relative to Hero: offset from the Hero's position at trigger time
- Relative to Viewport: offset from the current viewport center
- Absolute: fixed coordinate in the region
- Return To Hero: no position; immediately returns to the Hero
- X/Y Position: the target offset or coordinate (per Subtype)
- Speed (px/frame): how fast the camera travels
- Idle time: frames to pause at the target before finishing
- Interpolation curve (Linear, EaseIn/Out/InOut, Smoothstep, Smootherstep, EaseOutCubic, EaseOutBack)
- Freeze: halt the game while the camera moves
- Return to Hero: pan back to the Hero after reaching the target
- Causes Mode: when 'ComboType Causes->' fires relative to the effect
- On Finish: after the entire effect ends
- Before Return: after idle frames, before the return pan
- Before Idle: after the pan arrives, before idle frames
'ComboType Causes->' is only fired if the combo hasn't changed since the effect started (guards against mid-effect edits). Camera movements can be chained by triggering another Camera combo from the causes trigger. Only has a visible effect inside scrolling regions large enough for the viewport to move.
If a script modifies the viewport target sprite, that sprite is used in place of the Hero for 'Relative to Hero' and 'Return to Hero'.
- Subtype: how the target position is interpreted
Bug Fixes
- Improve lens hint graphics
19d8265659They were flickering weirdly, and animating wrongly when more than one of the same hint were visible. This also fixes an item animation issue in the editor, which uses the same drawing code.
- Lens 'Disable Secrets' flag also disabling hints
2178424f6c
Player
- Lens hints showing during player death animation
dbe28256af - Pushblock lens hints not drawing over block sprite layer
5dffacbc84 - Lens secret combos being misaligned in regions
f957bddb81 Whistle->Stairlens hints being misaligned in regionsf9f469a62e- Fake "lens hint" weapons sometimes triggering secret flags
a5b07145f5 - Non-triggering weapons still trigger secret flags
a139c83ab0 - Light beams not working properly during stepforward
eeedc7ecd1 - Absolute combo/cset triggers not working with exstates
23e921e616 - Draw wall masters over hero in new drawing mode
ee8aae3c36Regressed in 3ee61b00.
Editor
- Sort dmaps numerically by default
7a2a27c3c2 - Preview mode combo cycling using bad colors for Ignore CSet
95652b0030
ZScript
Game->CurrentItemID()using a bad default value for bitflags677429d689- Handle boolean access correctly in zasm_array_get_all
2fb4847f58
Build
- Ignore -Wignored-attributes from drawing.cpp
682dc0732d - Ignore or fix most -Wmissing-braces
42a08b7e7f - Fix many -Wunused-function
2936b874f3 - Ignore -Wself-assign
739c797a8d - Fix most -Wunused-private-field
ecfa81fab3 - Fix -Wreorder-ctor
3dfaba656a
Refactors
- Replace unsafe sprintf with snprintf
6a64ede16e
Tests
- Update replays re: lens fixes
2dd7a88027 - Add lens hint animation test
67c9b314e9