Trouble with CTC icon placement

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
User avatar
chesarty
Regular
Posts: 116
Joined: Sat Aug 25, 2018 3:07 am
Completed: 0
Contact:

Trouble with CTC icon placement

#1 Post by chesarty »

The renpy.org cookbook says, that this piece of code should lock the CTC icon in place at the corner of the textbox, but it just... doesn't? It tags along with the text instead of staying in one place.

Code: Select all

image ctc_animation = Animation("continue1.png", 0.1, "continue2.png", 0.1, "continue3.png", 0.1, "continue4.png", 0.1, "continue3.png", 0.1, "continue2.png", 0.1, "continue1.png", 0.1, xpos=0.99, ypos=0.99, xanchor=1.0, yanchor=1.0)
What am I doing wrong?

User avatar
namastaii
Eileen-Class Veteran
Posts: 1350
Joined: Mon Feb 02, 2015 8:35 pm
Projects: Template Maker for Ren'Py, What Life
Github: lunalucid
Skype: Discord: lunalucid#1991
Soundcloud: LunaLucidMusic
itch: lunalucid
Location: USA
Contact:

Re: Trouble with CTC icon placement

#2 Post by namastaii »

Have you tried adjusting x and y pos? Both numbers are under 1 which would make sense if it was xalign and yalign but with xpos and ypos, you can mess with those numbers to determine how many pixels over or down it is etc

User avatar
chesarty
Regular
Posts: 116
Joined: Sat Aug 25, 2018 3:07 am
Completed: 0
Contact:

Re: Trouble with CTC icon placement

#3 Post by chesarty »

namastaii wrote: Wed Aug 21, 2019 1:50 pm Have you tried adjusting x and y pos? Both numbers are under 1 which would make sense if it was xalign and yalign but with xpos and ypos, you can mess with those numbers to determine how many pixels over or down it is etc
yeah, i've tried all kinds off number combinations and it doesn't work; if i change the numbers to anything else, the icon disappears altogether, and 0.99 causes the icon to follow the text

User avatar
namastaii
Eileen-Class Veteran
Posts: 1350
Joined: Mon Feb 02, 2015 8:35 pm
Projects: Template Maker for Ren'Py, What Life
Github: lunalucid
Skype: Discord: lunalucid#1991
Soundcloud: LunaLucidMusic
itch: lunalucid
Location: USA
Contact:

Re: Trouble with CTC icon placement

#4 Post by namastaii »

ohhh you might need to place ctc in the textbox screen itself, if you include it in the character definition, it'll only follow the text. Though I'm not sure how to do that exactly at the moment

User avatar
chesarty
Regular
Posts: 116
Joined: Sat Aug 25, 2018 3:07 am
Completed: 0
Contact:

Re: Trouble with CTC icon placement

#5 Post by chesarty »

namastaii wrote: Wed Aug 21, 2019 2:08 pm ohhh you might need to place ctc in the textbox screen itself, if you include it in the character definition, it'll only follow the text. Though I'm not sure how to do that exactly at the moment
ahh, that's irritating D: i created a ctc icon before using the exact same method i'm using right now and it worked just fine, so i guess i'm just unlucky and ren'py likes messing with me lol

User avatar
chesarty
Regular
Posts: 116
Joined: Sat Aug 25, 2018 3:07 am
Completed: 0
Contact:

Re: Trouble with CTC icon placement

#6 Post by chesarty »

chesarty wrote: Wed Aug 21, 2019 2:31 pm
namastaii wrote: Wed Aug 21, 2019 2:08 pm ohhh you might need to place ctc in the textbox screen itself, if you include it in the character definition, it'll only follow the text. Though I'm not sure how to do that exactly at the moment
ahh, that's irritating D: i created a ctc icon before using the exact same method i'm using right now and it worked just fine, so i guess i'm just unlucky and ren'py likes messing with me lol
i also realized the character definition says the position of the ctc animation is "nestled". should i change it to fixed, perhaps? :0

EDIT: YES, THAT WORKED! yay thank god

User avatar
namastaii
Eileen-Class Veteran
Posts: 1350
Joined: Mon Feb 02, 2015 8:35 pm
Projects: Template Maker for Ren'Py, What Life
Github: lunalucid
Skype: Discord: lunalucid#1991
Soundcloud: LunaLucidMusic
itch: lunalucid
Location: USA
Contact:

Re: Trouble with CTC icon placement

#7 Post by namastaii »

Glad to hear that worked

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3792
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Trouble with CTC icon placement

#8 Post by Imperf3kt »

Ren'py has a built-in click to continue screen.
https://www.renpy.org/doc/html/screen_s ... o-continue

It's really simple to use.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], kedta35