Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

first open the hscript (i use weeklys mainly so i dont have any json stuff for you)

then open the xml of you char then copy the animation names and numbers to the correct place like this

trace(": )");

// char is a Character

function init(char) {

    trace(": )");

    var tex = FlxAtlasFrames.fromSparrow(hscriptPath + 'char.png', hscriptPath + 'char.xml');

    trace(": )");

    char.frames = tex;

    char.animation.addByPrefix('idle', 'Idle', 34, false);

    char.animation.addByPrefix('singUP', 'Sing Up', 7, false);

    char.animation.addByPrefix('singLEFT','Sing Left', 7, false);

    char.animation.addByPrefix('singRIGHT', 'Sing Right', 7, false);

    char.animation.addByPrefix('singDOWN', 'Sing Down', 7, false);

    trace("finish anim");

    char.addOffset('idle', 2, -42);

    char.addOffset('singUP',-6, 73);

    char.addOffset('singRIGHT',-36, 17);

    char.addOffset('singLEFT', 64, 6);

    char.addOffset('singDOWN', 1, -363);

    char.playAnim('idle');

    char.flipX = false;

    char.enemyOffsetX = 0;

    char.enemyOffsetY = 0;

    char.playerOffsetX = 0;

    char.playerOffsetY = 0;

    char.followCamX = 259;

    char.followCamY = -100;

    char.midpointX = 0;

    char.midpointY = 0;

}

portraitOffset = [0, 0];

dadVar = 6.1;

isPixel = false;

function update(elapsed, char) {

    // do nothing...

}

var danced = false;

function dance(char) {

    trace(": )");

    char.playAnim('idle');

}

trace("done");

then simpley add it to custom_chars.jsonc

and bam and dont forget to add the icons and such like this

,"tord" : {

         "icons" : [

             0

            ,1

            ,2

        ]

        ,"colors" : [

             "#EE20D9"

        ]

        ,"like" : "tord"

there you go with hscript and modcharts are possible in weeklys in the hscript format