Rewinding

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
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Rewinding

#1 Post by Triority »

I have noticed with the current verion of RenPy, that when rewinding back (using the mouse wheel, character sprites have a nasty habit of incorrectly positioning themselves - usually in the center of the screen), although when going forward, positions are okay.

tornsoul
Regular
Posts: 29
Joined: Sat Jun 19, 2021 7:32 pm
Contact:

Re: Rewinding

#2 Post by tornsoul »

A minimal code example showing the behavior would go a long way to figure out if it's a Renpy bug or (more likely) something in your code.

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: Rewinding

#3 Post by Triority »

Code: Select all

    scene bg castle with fade
    show youngGrendel curious at Position(xpos=0.999,xanchor=0.0,ypos=GRENDEL_YPOS,yanchor=0.5)
    show cleaner normal at Position(xpos=0.999,xanchor=0.0,ypos=GRENDEL_YPOS,yanchor=0.5)
    $ renpy.pause(0.25,hard=True)
    
    show youngGrendel happy
    youngGrendel "\"Perhaps you could combine the two positions ? Make dry information fun, for once !\""
    
This is the code I have - forward it's okay (as in the second picture), but rewind and then forward, for the first picture to happen. The odd thing is it didn't used to do this.
Attachments
screenshot0037.png
screenshot0036.png

User avatar
Triority
Regular
Posts: 185
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2, OVN 3, No Regrets For The Future
Projects: Welcome To... Chichester series
Organization: Triority
Tumblr: Sku-te
itch: triority
Location: England
Discord: sku_te
Contact:

Re: Rewinding

#4 Post by Triority »

I've figured out why now. Forward winding ignored the renpy.pause statement, and as there was an expression assignment before the character was actually positioned, it was being centred to the screen. So, get rid of the expression and it's sorted.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Hojoo, voluorem, W3C [Validator]