0% found this document useful (0 votes)
0 views

Script

The document outlines a function that sets properties for the Game Over state in a game. It specifies different character names and associated sound files for three distinct scenarios. Each scenario includes a death sound, a looping game over sound, and an end game sound.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Script

The document outlines a function that sets properties for the Game Over state in a game. It specifies different character names and associated sound files for three distinct scenarios. Each scenario includes a death sound, a looping game over sound, and an end game sound.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

function onCreate()

-- CHARACTER
setPropertyFromClass('substates.GameOverSubstate', 'characterName', 'bf13-
dead');

-- SOUNDS/MUSICS
setPropertyFromClass('substates.GameOverSubstate', 'deathSoundName',
'fnf_loss_sfx_phase1'); --file goes inside sounds/ folder
setPropertyFromClass('substates.GameOverSubstate', 'loopSoundName',
'gameOver'); --file goes inside music/ folder
setPropertyFromClass('substates.GameOverSubstate', 'endSoundName',
'gameOverEnd'); --file goes inside music/ folder

-- CHARACTER
setPropertyFromClass('substates.GameOverSubstate', 'characterName', 'bf13ph2-
dead');

-- SOUNDS/MUSICS
setPropertyFromClass('substates.GameOverSubstate', 'deathSoundName',
'fnf_loss_sfx_phase2'); --file goes inside sounds/ folder
setPropertyFromClass('substates.GameOverSubstate', 'loopSoundName',
'gameOver'); --file goes inside music/ folder
setPropertyFromClass('substates.GameOverSubstate', 'endSoundName',
'gameOverEnd'); --file goes inside music/ folder

-- CHARACTER
setPropertyFromClass('substates.GameOverSubstate', 'characterName', 'hiker-
dead');

-- SOUNDS/MUSICS
setPropertyFromClass('substates.GameOverSubstate', 'deathSoundName',
'fnf_loss_sfx_blizzard'); --file goes inside sounds/ folder
setPropertyFromClass('substates.GameOverSubstate', 'loopSoundName',
'gameOver'); --file goes inside music/ folder
setPropertyFromClass('substates.GameOverSubstate', 'endSoundName',
'gameOverEnd'); --file goes inside music/ folder
end

You might also like