Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

is there a way to put animated cutscenes with hscript?

A topic by Venesio created Aug 27, 2021 Views: 373 Replies: 3
Viewing posts 1 to 3

i'm making a mod about my friends and i want to put in cutscenes, is that possible with hscript?

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

thanks!

np