Search found 10 matches

by kde
Thu Dec 21, 2023 1:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Calling Screens and ui.interact with Sanbox elements
Replies: 4
Views: 29187

Re: Calling Screens and ui.interact with Sanbox elements

Hmm yea, I have already had some run-ins with call interaction from current context errors. I show my screens and call functions from within them (text buttons are making renpy.call statements), it is part of what is making me query if I am fundamentally misunderstanding how to manage the screen sys...
by kde
Thu Dec 21, 2023 11:26 am
Forum: Ren'Py Questions and Announcements
Topic: Calling Screens and ui.interact with Sanbox elements
Replies: 4
Views: 29187

Calling Screens and ui.interact with Sanbox elements

Howdy, I am looking to make a sandbox game and am looking for some best practices in renpy concerning screens, calling, and best practices for returns and controlling flow. Functionally I want to move around from room to room and interact with characters. Once in a room, the game pauses and waits fo...
by kde
Sat Dec 16, 2023 7:09 am
Forum: Ren'Py Questions and Announcements
Topic: Classes, define, default and save persistance clarity
Replies: 7
Views: 4076

Re: Classes, define, default and save persistance clarity

Yeah that is the solution I ended up going to - just a couple of label blocks that are instantiating

Code: Select all

label script:
 call var_defaults
 call instantiations
 #Start the actual game code
Plus some checkers in on_load that verify the classes are the same. It seems to hold together fine atm
by kde
Fri Dec 15, 2023 10:50 am
Forum: Ren'Py Questions and Announcements
Topic: Classes, define, default and save persistance clarity
Replies: 7
Views: 4076

Re: Classes, define, default and save persistance clarity

Yeah, but my understanding is that I can use the after_load label that is auto-executed to verify and pre-check the state of objects. label after_load: #compare class content, rebuild relevant management lists/dicts renpy.block_rollback() With the current Renpy, is that not doable anymore? I feel li...
by kde
Fri Dec 15, 2023 10:13 am
Forum: Ren'Py Questions and Announcements
Topic: Classes, define, default and save persistance clarity
Replies: 7
Views: 4076

Re: Classes, define, default and save persistance clarity

Hmm ok, I guess I can see why that would be the control flow. Is it considered an acceptable practice then in renpy to call a python block in your starting label to assign all your objects to their relevant default vars? So just have a big old python block statement at the start that sets variables ...
by kde
Fri Dec 15, 2023 8:11 am
Forum: Ren'Py Questions and Announcements
Topic: Classes, define, default and save persistance clarity
Replies: 7
Views: 4076

Classes, define, default and save persistance clarity

Howdy, I am trying to figure out some of the connectivity stuff between renpy/python and just work out the best way to manage data and persistence. I have a game that stores a ton of its data in lists/dictionaries for easy iteration and access, and most of my characters/types are stored in classes. ...
by kde
Mon May 07, 2018 5:10 am
Forum: Ren'Py Questions and Announcements
Topic: Python managing screens, context issue
Replies: 2
Views: 529

Python managing screens, context issue

So I am having a problem with managing screen handling through python, primarily from the issue with contexts. I have a setup where a video runs as a loop and i have an alt angle that can be switched. Using a button to call to cycle the screens. My original solution used label jumping: label first_v...
by kde
Mon Apr 23, 2018 12:34 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Cycle images with button independant of text
Replies: 7
Views: 1246

Re: Cycle images with button independant of text

Ah OK, thanks for those will give it a try, looks like I was misunderstanding how the event handler was operating. Appreciate the multiple alternatives, as a coder I am more interested in understanding how its trying to do things than just have a "use this" response. Thanks.
by kde
Sun Apr 22, 2018 10:48 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Cycle images with button independant of text
Replies: 7
Views: 1246

Re: Cycle images with button independant of text

They are separate images, so the idea is just to have clicking the button swap the images entirely with the images being the entirety of the display (not as part of a BG or composite). So calling them background images that get changed would be a suitable analogy. The main thing I am after though is...
by kde
Sun Apr 22, 2018 8:55 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Cycle images with button independant of text
Replies: 7
Views: 1246

[Solved] Cycle images with button independant of text

I imagine there is a pretty straight forward way to do this that I am just not getting. Basically I have two images, a zoomed out and zoomed in version and want to have the user click a button to zoom in or out (or hell even a button for zoomed and one for un-zoomed), regardless of the state of the ...