Page 1 of 1

Help with CTC positioning?

Posted: Thu Oct 22, 2020 6:57 pm
by Wendyd24
Hey again.

I'm trying to figure out how to have a fixed position for a ctc(click to continue button), but I'm having trouble.

I'm trying to achieve a bouncing effect at the bottom middle of the textbox after the dialogue is finished, so I do not want it nestled, and I was attempting to use an ATL, but I can't get the fixed position to be recognized.

Code: Select all

init offset = -2

define narrator = Character(None,

image ctc:
    yalign 0.5 xalign 0.5,
    linear 0.5 xalign 0.60,
    linear 0.5 xalign 0.5,

If I removed the

Code: Select all


then it defaults to nestled, but with that code there, it places the ctc icon in the top right corner, not adjusting to any changes in the ATL numbers.

I know this is a workaround way of doing this, and I didn't want it to be my final solution since I would need to define the ctc in every characters definition, so if there is a better way to do this please let me know! This was all I could really find on the subject and even it is failing me lol.

Thanks for the help. Another thing! Is there anywhere better for me to ask such simple questions? I don't see a questions/help section in the renpy discord so maybe this is the best place?

Re: Help with CTC positioning?

Posted: Fri Oct 23, 2020 8:38 am
by RicharDann
In the Character definition, you are not using the "ctc" displayable you created with ATL properties, you're telling it to use directly "ctc.png" which is the image file you placed in your project's images folder. So you need to have it like this:

Code: Select all

define narrator = Character(None,
You may want to change your ATL image name to something like ctc_anim to avoid confusing the parameters.