Cinematic Supers (Level Sequence)
A super can cut to a Level Sequence: the attacker connects, the camera cuts to a close shot, the opponent takes a beat down, then a finisher sends it flying (Guilty Gear style cinematic supers). In AFT, a cinematic super is two actions and a sequence:
| Piece | Role |
|---|---|
| Start action | The super of the move list: super flash, startup and the first hit. Its hit definition has a Hold Action On Hit. |
| Hold action | Started by that hit. It holds the opponent (Hold Opponent events), plays the cinematic hits (Cue events) and finishes the super with Release Opponent (damage, launch). |
| Level Sequence | Played by a Cinematic (Level Sequence) event of the hold action: camera shots, extra effects, props. Presentation only. |
The simulation owns everything that matters (hits, damage, positions, timing): the sequence only follows the frames of the hold action. A cinematic super has the same frame data offline and online, and it is rollback safe.
How it plays
- The start action connects. When the hit is not blocked, not absorbed by armor, not from a projectile and does not knock out, the attacker switches to the hold action and holds the defender, like a held throw. The hit stop of the hit plays first: the impact freeze before the cut.
- The Cinematic event of the hold action starts the sequence: the camera cuts to the sequence and the HUD fades out.
- The Hold Opponent events place the opponent, the Cue events play the slashes, impact sparks and sounds of the cinematic hits.
- Release Opponent deals the damage of the super (a hit of the hold action) and launches the opponent, which lands in a hard knockdown.
- The hold action ends, the sequence stops and the battle camera comes back.
On block, on whiff or when the first hit knocks out, nothing is held: the start action plays its recovery like any super. Combos into the super work: an opponent in hit stun is held too.
Step by step
1. The start action
Create the super action in the Fighter Editor (or with
CreateActionForFighter), category Super, set its MeterCost and add its
command to the move list (for example 236236C).
On its timeline:
- a Super Freeze event near the start (super flash);
- Invulnerable frames for the startup, if wanted;
- the movement, for example a Velocity event for a dash;
- the Hitbox of the hit, and a Cue event for the swing trail.
In its Hits, select the hit definition of that hitbox and set Hold Action On Hit to the hold action (create
the hold action first, or come back to this step). This hit is the first contact only:
- keep its
Damagelow: a hit that knocks out does not hold; - its
HitCueis the impact of the first contact.
See Hits and Boxes for the other properties of the hit.
2. The hold action
Create the hold action, category Super too. It has no command (it only starts from the hit) and no MeterCost. Its length is
the length of the cinematic, for example 150 frames (2.5 seconds).
On its timeline:
- Hold Opponent events from frame 0: where the held opponent stands (its feet, at
Offsetfrom the fighter, X forward, Y up, in cm), and how it moves (lifted by an uppercut, slammed down...) withbInterpolateandEndOffset. An action without a Hold Opponent event holds nobody: the hit stays a normal hit, and Validate warns about it. - Release Opponent on the frame of the finisher:
HitIndexis a hit definition in theHitsof the hold action (damage, attack level, reaction,HitCue),Velocityis the launch (cm per frame, X forward, Y up). - Invulnerable (strike, throw, projectile) on every frame: an interrupted hold drops the opponent without damage.
- its Animation (the attacker), and the
OpponentAnimationof the action (the held opponent, see Held opponent animation).
The preview opponent of the Fighter Editor follows the Hold Opponent events: drag their start and end points in the viewport to place the opponent.
3. Create the Level Sequence
In the Fighter Editor, open the hold action, go to its first frame and use Cinematics > New Action Cinematic (Super). It
creates LS_<Action> in <fighter folder>/Cinematics (LS_Hero_Super_Cinematic for DA_Hero_Super_Cinematic) and opens it:
- a 60 fps display rate and a playback range from the current frame to the end of the action;
- a Fighter and an Opponent binding, tagged
Fighter/Opponent: at runtime they are bound to the fighter and to the held opponent; - a cine camera close on the fighter (low three quarter, slow push-in) with a camera cut;
- on the hold action, a Cinematic (Level Sequence) event on a Cinematics track, from the current frame to the end of the action.
The same from Python / Blueprint: UAFTEditorLibrary::CreateActionSequence(Action, StartFrame) (see
Timeline scripting).
The Cinematic (Level Sequence) event can also be added by hand (right click a track of the timeline):
| Property | Default | Description |
|---|---|---|
Sequence | The Level Sequence. Validate reports an event without one. | |
StartTime | 0 | Time of the sequence (seconds) at the first frame of the event. |
bHideHUD | on | Fades out the battle HUD while the sequence plays. |
The sequence plays over the frames of the event. With an event from frame 0, frame N of the sequence is frame N of the action: use the timeline of the action to find the frames of the hits.
4. The camera work
Author the sequence like the intro sequences:
- Space: the fighter at the world origin facing +X, up +Z, the side of the battle camera (the screen) toward +Y.
The held opponent stands at its Hold Opponent offset: an offset of
(88, 0)is X = 88 in the sequence. At runtime the sequence is moved onto the fighter and mirrored with its side, so one sequence works on both sides of the screen. - Preview: place an AFT Fighter Actor (or the mesh) at the origin and another one at the hold offset, and use Assign Actor on the Fighter and Opponent bindings.
- Shots: key the camera transform. A constant key followed by the key of the next shot gives a hard cut; several cameras with the camera cut track work too. A small camera kick on the hit frames (2 frames) sells the impacts.
- Extras: effects, props and extra characters as spawnables of the sequence. An effect actor (for example an AFT Slash Effect) spawned by the sequence plays on its own when it appears.
- Keep the gameplay out of the sequence: the fighters keep the animations of their actions, and the hits and the damage stay on the action.
5. The cinematic hits
The held opponent can't be hit: the damage of the whole super is the Release Opponent hit. Each hit of the beat down is presentation, with two Cue events of the hold action:
- the swing trail, one frame before the hit, attached, at the weapon: a slash effect of that swing;
- the impact on the hit frame, not attached, at the opponent: spark, sound,
CameraImpulse, vibration.
Cues are rollback safe: each one plays once, even when the frames are simulated again. The finisher plays the HitCue of the
Release Opponent hit.
6. Test it
In an offline battle (training room, Match Tester), open the console and type:
aft.PlayAction 0 DA_Hero_Super_Start
The active fighter of team 0 (player 1) starts the action now, without input and without meter: no need to fill the meter or
to input the motion. Stand close to the opponent so that the hit connects. The log says started or refused.
Play the start action: it holds the opponent and starts the cinematic. The hold action played on its own has nobody to hold.
From Blueprint: TrainingPlayAction(Team, Action) of the battle subsystem. Both are debug tools for offline battles only: they
are refused online.
Then run the super in the Sync Test net mode of the Match Tester: every frame is rolled back and checked, the super must play without mismatch (see Debugging and Tests).
Rules
- Timing: the simulation owns it. The sequence follows the frame of the action: it holds during hit stops and pauses, re-syncs after a rollback and stops when the action changes. An action cinematic never changes the frame data, online included. Make the hold action as long as the sequence.
- Presentation only: the Cinematic event does not affect the simulation. The hold, the hits and the damage come from the actions, the sequence only adds what the players see.
- HUD: it fades out while the sequence plays (event option
bHideHUD), and comes back when it stops. - Bindings: Fighter is the fighter that plays the action, Opponent the held opponent (else the active fighter of the other team).
Held opponent animation
The OpponentAnimation of the hold action plays on the held opponent, sampled at the frame of the hold action, when the mesh of
the opponent uses the skeleton of that animation (or a compatible one). An opponent on another skeleton plays its own Thrown
action at the hold time instead: a cinematic super works against every fighter of the roster, whatever its skeleton.
At runtime
UAFTCinematicDirector plays the action cinematics like the intros:
| Member | Description |
|---|---|
| On Cinematic Started, On Cinematic Finished | Called with the kind Action and the team of the fighter. |
GetCinematicKind, IsPlayingCinematic | Action while an action cinematic plays. |
GetCinematicFighter | Fighter index of the playing cinematic (INDEX_NONE when none). |
ShouldHideHUD | The playing action cinematic asks to hide the HUD (bHideHUD). |
MaxDriftFrames | 3: the sequence jumps back on the simulation time beyond this drift. |
Example recipe
A recipe for a cinematic super (the template does not ship one): command 236236C, half of the meter (MeterCost 5000),
two actions. Adapt the frames to your animations.
The start action, Super_Start (70 frames):
| Frames | Event |
|---|---|
| 0 to 45 | Invulnerable (strike, throw, projectile) |
| 4 | Super Freeze, 30 frames, with a super flash cue |
| 36 to 44 | Velocity: 13 cm per frame forward, every frame (the dash) |
| 45 | Velocity: 0 (the dash stops) |
| 43 | Cue: the swing slash, attached at the weapon (or the hand) |
| 44 to 47 | Hitbox, hit 0: level 4, 400 damage, 80 chip damage, Mid, Hold Action On Hit = Super_Cinematic |
The hold action, Super_Cinematic (150 frames):
| Frames | Event | Opponent |
|---|---|---|
| 0 to 149 | Invulnerable; Cinematic LS_<Fighter>_Super_Cinematic (bHideHUD) | |
| 0 to 29 | Hold Opponent (88, 0) | In front of the fighter, two hits (cues on 10 / 11 and 20 / 21) |
| 30 to 35 | Hold Opponent (88, 0) -> (94, 45) | Lifted by the uppercut (cues on 30 / 31) |
| 36 to 43 | Hold Opponent (94, 45) | In the air, overhead smash (cues on 42 / 43) |
| 44 to 49 | Hold Opponent (94, 45) -> (88, 0) | Slammed down |
| 50 to 98 | Hold Opponent (88, 0) | The wind up; the finisher slash cue on 98 |
| 99 | Release Opponent, hit 0, velocity (17, 15) | Finisher: 2600 damage, unblockable, hard knockdown, hit stop 22 |
Each cue pair is the swing slash (attached, at the weapon or the hand) on the frame before the hit, and the impact (at the opponent, not attached) on the hit frame.
The sequence has six shots: a cut-in on the face of the fighter (frames 0 to 27), a side shot of the beat down (28 to 57), a low hero angle on the wind up (58 to 97), a wide shot of the finisher (98 to 111), the camera following the opponent sent flying (112 to 124) and the pose (125 to 149), with a camera kick on each hit and a burst effect spawned by the sequence on the finisher.
From Python
The same super from a script, with the timeline functions:
import unreal
aft = unreal.AFTEditorLibrary
load = unreal.EditorAssetLibrary.load_asset
fighter = load("/Game/Fighters/Hero/DA_Hero")
start = aft.create_action_for_fighter(fighter, "Super_Start", unreal.AFTActionCategory.SUPER,
load("/Game/Hero/Animations/A_Hero_Super_Start"))
cine = aft.create_action_for_fighter(fighter, "Super_Cinematic", unreal.AFTActionCategory.SUPER,
load("/Game/Hero/Animations/A_Hero_Super_Cinematic"))
# start action: super flash, invulnerable startup, dash, the hit that holds
start.set_editor_property("meter_cost", 5000)
aft.add_super_freeze_event(start, 4, 30, "None") # None = AFT.Cue.SuperFreeze
aft.add_invulnerable_event(start, 0, 46)
aft.add_velocity_event(start, 36, 9, 13.0, False, 0.0, True)
aft.add_hitbox_event(start, 44, 4, 90.0, 110.0, 80.0, 60.0, 0)
hit = unreal.AFTHitDefinition()
hit.set_editor_property("hit_name", "Super")
hit.set_editor_property("attack_level", 4)
hit.set_editor_property("damage", 400)
hit.set_editor_property("hold_action_on_hit", cine)
start.set_editor_property("hits", [hit])
# hold action: hold the opponent, cinematic hits (cues), release with the finisher
aft.add_invulnerable_event(cine, 0, 150)
aft.add_hold_opponent_event(cine, 0, 99, 88.0, 0.0, 88.0, 0.0)
for frame in (11, 21, 31, 43):
aft.add_cue_event(cine, frame, "AFT.Cue.Hit.Default", 88.0, 110.0, False)
finisher = unreal.AFTHitDefinition()
finisher.set_editor_property("hit_name", "Finisher")
finisher.set_editor_property("attack_level", 5)
finisher.set_editor_property("damage", 2600)
finisher.set_editor_property("guard_type", unreal.AFTGuardType.UNBLOCKABLE)
finisher.set_editor_property("ground_reaction", unreal.AFTHitReaction.KNOCKDOWN_HARD)
cine.set_editor_property("hits", [finisher])
aft.add_release_opponent_event(cine, 99, 0, 17.0, 15.0)
# the Level Sequence and its Cinematic event (frame 0 to the end of the action)
sequence = aft.create_action_sequence(cine, 0)
aft.save_all_under("/Game/Fighters/Hero")
Then add the 236236C command of Super_Start to the commands of the fighter, and key the camera in the sequence.