Page 1 of 2

click-to-continue response cursor

Posted: Fri Jan 11, 2008 2:03 am
by amgauveldt
Is there a way to enable a blinking cursor or some other visual cue that Ren'Py is waiting for a click to continue? Having the display go totally frozen and stiff just isn't the way most games of this type that I've seen do this. I don't need much--even just a blinking solid arrow would suffice. Thanks.

Re: click-to-continue response cursor

Posted: Fri Jan 11, 2008 5:07 am
by monele
You'll want to create an animation for your arrow :
http://renpy.org/wiki/renpy/doc/referen ... imation%29

And then check the Click-to-continue parameter of your Characters :
http://renpy.org/wiki/renpy/doc/referen ... aracter%29

Re: click-to-continue response cursor

Posted: Fri Jan 11, 2008 10:50 am
by Adorya
I though it was not possible to make an animation on a ctc but a blink, is it now possible to do it since the last Character function change?

Re: click-to-continue response cursor

Posted: Fri Jan 11, 2008 2:05 pm
by monele
It's been possible for some time since I used it in Phoenix Wright.

Re: click-to-continue response cursor

Posted: Fri Jan 11, 2008 5:29 pm
by Cybeat
Do you have to type those in "quote for quote" or can you type it in once and they'll appear in all your character's quotes?

Re: click-to-continue response cursor

Posted: Fri Jan 11, 2008 5:34 pm
by monele
Cybeat wrote:Do you have to type those in "quote for quote" or can you type it in once and they'll appear in all your character's quotes?
I'm not sure what you're asking here ^^;... By "quote", do you mean a character's dialogue sentence?

Re: click-to-continue response cursor

Posted: Fri Jan 11, 2008 5:51 pm
by Cybeat
monele wrote:
Cybeat wrote:Do you have to type those in "quote for quote" or can you type it in once and they'll appear in all your character's quotes?
I'm not sure what you're asking here ^^;... By "quote", do you mean a character's dialogue sentence?
Yeah, that.

Re: click-to-continue response cursor

Posted: Fri Jan 11, 2008 9:23 pm
by Kaihaku
No, you just have to note the image when you define the character. This is from the example...

Code: Select all

    $ ectc = Character('Eileen', color=(200, 255, 200, 255),
                       ctc = anim.Blink("arrow.png"))
Just define a character as normal and add in ctc = anim.Blink("arrow.png") or whatever.

If you want it to affect more than one character or all characters, put it in all character definations or... Well, I'm certain there's a way to do this globally, or for every dialogue, but I'm not familar enough with Ren'py at the moment to know how.

Re: click-to-continue response cursor

Posted: Fri Jan 11, 2008 9:56 pm
by Ocircuit
I wanted to use this in my visual novel, but never knew how. It works sorta...the arrow should only show up after one new line of text promting the player to click for the next line, but with this code the arrow stays on every line of text and continues blinking instead of staying only on the newest line of text. how can that be fixed?


EDIT: my vn is in nvl format

Re: click-to-continue response cursor

Posted: Fri Jan 11, 2008 11:11 pm
by amgauveldt
Kaihaku wrote:No, you just have to note the image when you define the character. This is from the example...

Code: Select all

    $ ectc = Character('Eileen', color=(200, 255, 200, 255),
                       ctc = anim.Blink("arrow.png"))
Just define a character as normal and add in ctc = anim.Blink("arrow.png") or whatever.

If you want it to affect more than one character or all characters, put it in all character definations or... Well, I'm certain there's a way to do this globally, or for every dialogue, but I'm not familar enough with Ren'py at the moment to know how.
What about getting the narrator to blink?

If mycharacter has a ctc then

Code: Select all

mycharacter "Hello!"
blinks but

Code: Select all

"I'm the narrator!"
does not

Re: click-to-continue response cursor

Posted: Fri Jan 11, 2008 11:35 pm
by PyTom
The narrator is just a special character (named narrator).

Re: click-to-continue response cursor

Posted: Sat Jan 12, 2008 2:25 am
by amgauveldt
PyTom wrote:The narrator is just a special character (named narrator).
So how would I change his ctc and ctc_position outside of a defintion or can I use something like

Code: Select all

$ narrator=Character(...new...)
to overwrite it?

Re: click-to-continue response cursor

Posted: Sat Jan 12, 2008 2:35 am
by Ocircuit
amgauveldt wrote:
PyTom wrote:The narrator is just a special character (named narrator).
So how would I change his ctc and ctc_position outside of a defintion or can I use something like

Code: Select all

$ narrator=Character(...new...)
to overwrite it?

I think its

$ narrator=Character('None', ctc = anim.Blink("arrow.png"))

Re: click-to-continue response cursor

Posted: Sat Jan 12, 2008 2:36 am
by PyTom
Overwriting it is the way to go.

Re: click-to-continue response cursor

Posted: Sat Jan 12, 2008 2:47 am
by Ocircuit
How can I make this work with a visual novel in nvl format? I've seen it done before but I'm not sure how to tweak the code. Using the code as is it leaves the blinking arrow next to each line of text for the duration of the time the text is displayed. I need it only to blink on the newest line of text and have the arrows not blink on the lines of text before it that are still displayed.