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

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
bloobeary
Regular
Posts: 36
Joined: Fri Oct 04, 2019 3:02 pm
Deviantart: bloobeary
Soundcloud: user-212448702
Contact:

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

#1 Post 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?
Last edited by bloobeary on Thu Sep 16, 2021 7:08 pm, edited 1 time in total.

User avatar
bonnie_641
Regular
Posts: 133
Joined: Sat Jan 13, 2018 10:57 pm
Projects: Código C.O.C.I.N.A.
Deviantart: rubymoonlily
Contact:

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

#2 Post 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

I speak and write in Spanish. I use an English-Spanish translator to express myself in this forum. If I make any mistakes, please forgive me.
I try my best to give an answer according to your question. :wink:

bloobeary
Regular
Posts: 36
Joined: Fri Oct 04, 2019 3:02 pm
Deviantart: bloobeary
Soundcloud: user-212448702
Contact:

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

#3 Post 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!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot]