double-clicks when using centered

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
Leviy
Newbie
Posts: 8
Joined: Sun Dec 23, 2018 5:09 am
Contact:

double-clicks when using centered

#1 Post by Leviy »

Hello!
I using "centered" for displaying a text. So i want displaying a text this way:
centered "some text"
##here player clicks, hides previous text and showing next
centered "another text"

but the problem is that the player double-clicks to see "another text": first click hides previous text, and only the second click shows next text.
How can i solve this?

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: double-clicks when using centered

#2 Post by xavimat »

That's strange. Can you show us your code? Have you put a pause?
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: double-clicks when using centered

#3 Post by isobellesophia »

How about

Code: Select all

show text "blahblah" at truecenter
hide text at truecenter with dissolve
or

Code: Select all

text "some text" xalign 0.5
hide text "hide" xalign 0.5
i dont test this yet, so take a try.
I am a friendly user, please respect and have a good day.


Image

Image


Post Reply

Who is online

Users browsing this forum: No registered users