How to move back and forth between dialogue?

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
finnlawrence
Newbie
Posts: 11
Joined: Mon Dec 24, 2012 11:35 am
Contact:

How to move back and forth between dialogue?

#1 Post by finnlawrence »

Hello, I'm making a sort of ace attorney style game and something I'm having trouble with is how to make the player able to move back and forth between a section of 'say' statements. I only want to do it in certain sections, the way ace attorney does with testimony, and if possible can this be done without a separate screen?

If anyone can help, thanks in advance!

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: How to move back and forth between dialogue?

#2 Post by Elmiwisa »

Ren'Py already have rollback. Is there any reason that was not sufficient? Or that you want to disable it for some part of the game?

User avatar
finnlawrence
Newbie
Posts: 11
Joined: Mon Dec 24, 2012 11:35 am
Contact:

Re: How to move back and forth between dialogue?

#3 Post by finnlawrence »

I was hoping to disable it for most of the game, and re-enable it only for certain parts.

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: How to move back and forth between dialogue?

#4 Post by Elmiwisa »

You could try this:
1. Make a new keymap's key. Move everything from the "rollback" key to this new key.
2. Declare a variable at the game start the indicate whether rollback is allowed.
3. Add a keymap to the say screen which receive the new key and perform action Rollback(). This keymap is only there if the variable let it.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: How to move back and forth between dialogue?

#5 Post by Donmai »

Maybe this thread could be of interest: http://lemmasoft.renai.us/forums/viewto ... =8&t=23582
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot]