Page 1 of 1

[SOLVED] trying to add a CTC indicator and I get nothing

Posted: Thu Sep 16, 2021 2:36 pm
by bloobeary
I'm trying to add a click to continue indicator to my game, and I've found a piece of code online that is supposed to work, but... it doesn't.

Here's what I've got:

I add the ctc code to the character definition like so...

Code: Select all

define t = Character("Tom", color="55ccff", what_color="ffffff", ctc="ctc_blink", ctc_position="nested")
and I add an image statement before the label start: like so...

Code: Select all

image ctc_blink:
    "ctc01.png"
    linear 0.5 alpha 1.0
    "ctc02.png"
    linear 0.5 alpha 1.0
    "ctc03.png"
    linear 0.5 alpha 1.0
    "ctc02.png"
    linear 0.5 alpha 1.0
    repeat
...and when I run the game, nothing shows up. No ctc indicator at all. It's not throwing any errors, but it also isn't showing the ctc indicator.

I've also seen someone comment that there's supposed to be documentation on setting one of these up in the tutorial game, but if there is, I can't find it.

What am I doing wrong?

Re: trying to add a CTC indicator and I get nothing

Posted: Thu Sep 16, 2021 6:50 pm
by bonnie_641
bloobeary wrote: Thu Sep 16, 2021 2:36 pm ...
I hope you find this example useful:

Code: Select all

init:
    image ctc_brilla: #<-------------------------------- CTC
       "images/estrella.png"
       linear 0.75 alpha 1.0
       linear 0.75 alpha 0.0
       repeat
###############################

    $ narrador_muy_alto = Character(None,
        what_color="#fff", #<------------------- you're missing '#'
        #what_style= "borde_texto",
        #window_background= Frame("gui/textboxes/vacio.png", 0, 0),
        #window_style="power",
        window_pos=(0.1,0.3),
        ctc="ctc_brilla", #<------------------ here :D
        ctc_position="nestled",
        what_sufix="{i}""" #<---------- You may be missing this variable
        )

I can't check it, but if you follow the example you will be able to do so.

Code: Select all

define t = Character("Tom", color="#55ccff", what_color="#ffffff", ctc="ctc_blink", ctc_position="nested", what_sufix="{i}""")

#(...)

image ctc_blink:
    "ctc01.png"
    linear 0.5 alpha 1.0
    "ctc02.png"
    linear 0.5 alpha 1.0
    "ctc03.png"
    linear 0.5 alpha 1.0
    "ctc02.png"
    linear 0.5 alpha 1.0
    repeat


Re: [SOLVED] trying to add a CTC indicator and I get nothing

Posted: Thu Sep 16, 2021 7:10 pm
by bloobeary
Thanks for the response, but I just figured out what I was doing wrong, and I have it working now.

The word isn't "nested" it's "nestled" with an L.

D'OH!