Solved

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
Eirrir
Regular
Posts: 81
Joined: Mon Feb 27, 2017 7:16 pm
Projects: Operation: Future Domination
Tumblr: Eirrir
itch: eirrir
Contact:

Solved

#1 Post by Eirrir »

Thanks!
Last edited by Eirrir on Thu Jun 01, 2017 7:07 pm, edited 1 time in total.

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: Scrollbar resetting after selecting option

#2 Post by Divona »

Problem is that you use ShowMenu() to switch the screen to another screen (location_one, location_two, etc). I would assume that the first block of code is "screen phone_gps", and you "use phone_gps" to embed that screen to other "location" screen. This would likely the cause to why the scrollbar reset itself every time.

What you have to do is to show "screen phone_gps" once and leave it alone, while just changing what "screen location()" display according to what player choose on the "gps_list". That would involve variables to check the condition, and either Showif or pass down through screen parameters.

I don't see the bit of the code that display red bar when hover over the textbutton, so I can't give the exactly why, but the issue is because the red bar is drawn after those textbutton, not before. Issue is likely to be in "style menu_bar_button" and "style menu_bar_button_text.
Completed:
Image

Post Reply

Who is online

Users browsing this forum: Google [Bot]