Skip to content

v3001.0.6

Latest
Compare
Choose a tag to compare
@lajbel lajbel released this 27 Dec 04:12

Hey! New release in these holiday dates 🎅🏻

This update comes with some update in texts and finally adding the global trigger! I left you the changelog. Thanks for staying up with KAPLAY! And merry xmas!

[3001.0.6] "Santa Events" - 2024-12-27

Added

  • Added trigger(event, tag, ...args) for global triggering events on a
    specific tag (experimental) - @lajbel

    trigger("shoot", "target", 140);
    
    on("shoot", "target", (obj, score) => {
        obj.destroy();
        debug.log(140); // every bomb was 140 score points!
    });
  • Added { override?: true } in CharTransform for overridding text styles -
    @dragoncoder047

    add([
        pos(100, 150),
        text("With override: Hello [foo]styled[/foo] text", {
            transform: {
                color: BLACK, // Default text color for every character
            },
            styles: {
                foo: {
                    color: RED, // [foo] will be red
                    override: true, // will override the black def color
                },
            },
        }),
    ]);
  • Added { indentAll?: boolean } in TextCompOpt to indent every new line -
    @dragoncoder047

  • Added TypeScript definition for all App Events and missing Game Object
    Events - @lajbel

Fixed

  • Fixed an incorrect mention to the component in TextInputComp type -
    @dragoncoder047