click-to-continue response cursor

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.
Message
Author
amgauveldt

click-to-continue response cursor

#1 Post 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.

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: click-to-continue response cursor

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

Adorya
Miko-Class Veteran
Posts: 541
Joined: Fri Aug 18, 2006 4:51 pm
Contact:

Re: click-to-continue response cursor

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

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: click-to-continue response cursor

#4 Post by monele »

It's been possible for some time since I used it in Phoenix Wright.

Cybeat
Miko-Class Veteran
Posts: 607
Joined: Wed Jan 02, 2008 3:12 am
Contact:

Re: click-to-continue response cursor

#5 Post 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?
Mujinchitai
http://lemmasoft.renai.us/forums/viewto ... =16&t=3360
Current Status: artist of R.E.M: Reality's Dream and musician, programmer, and writer of Mujinchitai

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: click-to-continue response cursor

#6 Post 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?

Cybeat
Miko-Class Veteran
Posts: 607
Joined: Wed Jan 02, 2008 3:12 am
Contact:

Re: click-to-continue response cursor

#7 Post 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.
Mujinchitai
http://lemmasoft.renai.us/forums/viewto ... =16&t=3360
Current Status: artist of R.E.M: Reality's Dream and musician, programmer, and writer of Mujinchitai

Kaihaku
Regular
Posts: 47
Joined: Fri Jan 04, 2008 10:10 pm
Location: Kampuchea
Contact:

Re: click-to-continue response cursor

#8 Post 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.

Ocircuit
Regular
Posts: 39
Joined: Sun Jul 15, 2007 5:47 pm
Contact:

Re: click-to-continue response cursor

#9 Post 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
Last edited by Ocircuit on Sat Jan 12, 2008 12:17 am, edited 1 time in total.
Image

amgauveldt

Re: click-to-continue response cursor

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

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: click-to-continue response cursor

#11 Post by PyTom »

The narrator is just a special character (named narrator).
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

amgauveldt

Re: click-to-continue response cursor

#12 Post 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?

Ocircuit
Regular
Posts: 39
Joined: Sun Jul 15, 2007 5:47 pm
Contact:

Re: click-to-continue response cursor

#13 Post 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"))
Image

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: click-to-continue response cursor

#14 Post by PyTom »

Overwriting it is the way to go.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Ocircuit
Regular
Posts: 39
Joined: Sun Jul 15, 2007 5:47 pm
Contact:

Re: click-to-continue response cursor

#15 Post 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.
Image

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot], Ocelot, piinkpuddiin