Skip to reading
Characters, Portraits & Lip Sync

Movement, states, and control

Edition 0.86.4.4 Hotfix 2

Updated through 0.86.4.4 Hotfix 2, with cinematic property, recorded-pose or voice-timing lessons as described in this guide. Earlier examples, screenshots and complete registry figures retain their stated edition context.

Download PDFView PDF page
On this page

PCA Script#

Code example
function run()
    SetVoiceSpeaker({"characterId": "elias"})
    PlayVoice({"voiceAssetId": "voice_elias_01", "wait": true})
    SetVoiceSpeaker({"characterId": ""})
end

BASIC#

Code example
FUNCTION Run()
    AWAIT SetVoiceSpeaker({"characterId": "elias"})
    AWAIT PlayVoice({"voiceAssetId": "voice_elias_01", "wait": true})
    AWAIT SetVoiceSpeaker({"characterId": ""})
END FUNCTION

Lua#

Code example
local Script = {}
function Script.run()
    await(SetVoiceSpeaker({characterId = "elias"}))
    await(PlayVoice({voiceAssetId = "voice_elias_01", wait = true}))
    await(SetVoiceSpeaker({characterId = ""}))
end
return Script

For pause/seek controls in an existing GDScript sequence, the calls are await PauseVoice({}), await

SeekVoice({"seconds": 0.5}), and await ResumeVoice({}). Use them while a non-waiting voice is still active, not after the complete line has already finished.

The shared character actions also cover walking, following, facing, room changes, and player control. Configure states in Character Designer first, then use the relevant actions from the list/node picker.

Choose a real character and a reachable destination for Character Walk To. Use Follow Character and Stop Follow Character for a companion. Keep room transfers consistent with the single reusable-character placement rule. For a gesture, choose an animation/state that actually exists on the selected character.

Do not run a second lip-sync clock in a custom loop merely because a body animation is also playing. The built-in speech session already connects the recording, scene face, and portrait.

Page 64 of 75Permalink
Go to page