Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits) (+1)

Thanks for sharing this! I just had a question - is there a way to customise the timer bar with images? Or to adjust the opacity of the borders?

Edit: Nevermind, I figured it out! instead of:

screen timed_choice_visual(adjusted_time):

    fixed:

        xsize int(gui.timed_choice_timer_bar_width)
        ysize int(gui.timed_choice_timer_bar_height)

        xalign 0.5

        # The timer bar is not filled.

        add Solid(gui.timed_choice_timer_bar_under_color)
        add "gui/bar/right.png"

        # The timer bar when it is filled.

        # It will shrink to the middle until the timer has run out.

        add Solid(gui.timed_choice_timer_bar_fill_color):

       
            at transform:

                xalign 0.5

                xzoom 1.0

                linear adjusted_time xzoom 0.0

I'm using:

screen timed_choice_visual(adjusted_time):

    fixed:

        xsize int(gui.timed_choice_timer_bar_width)
        ysize int(gui.timed_choice_timer_bar_height)

        xalign 0.5

        # The timer bar is not filled.

        add "gui/bar/right.png":

            at transform:

                xalign 0.5

                xzoom 1.0

        # The timer bar when it is filled.

        # It will shrink to the middle until the timer has run out.

        add "gui/bar/left.png":

            at transform:

                xalign 0.5

                xzoom 1.0

                linear adjusted_time xzoom 0.0

Wherein left.png and right.png are custom bar images.