Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

it is possible just copy and paste this code into the custom cutscenes folder but first copy a json and then delete everything in it and paste in this code

function start(song) {

    trace("wink");

    FlxG.camera.visible = false;

    camHUD.visible = false;

    

    trace("help");

    new FlxTimer().start(0.1, function(tmr)

    {

        dad.playAnim('dad animation you want to play');    

        FlxG.camera.visible = true;

        FlxG.sound.play(FNFAssets.getSound('assets/sounds/sound in assets sounds' + TitleState.soundExt));

        currentPlayState.camFollow.y = 270;

        currentPlayState.camFollow.x += -140;

        FlxG.camera.focusOn(currentPlayState.camFollow.getPosition());

        FlxG.camera.zoom = 0.55;

        new FlxTimer().start(0.3, function(tmr) {

            currentPlayState.camHUD.visible = true;

            FlxTween.tween(FlxG.camera, {zoom: currentPlayState.defaultCamZoom}, 2.5, {

                ease: FlxEase.quadInOut,

                onComplete: function(twn) {

                    currentPlayState.startCountdown();

                }

            });

        });

    });

}


and then just go to debug mode or the json file and add as the cutscene type your cutscene's name