Search found 7 matches

by Wildly
Mon Dec 25, 2023 8:12 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do I pass a variable with actions to the action field of an imagebutton?
Replies: 4
Views: 366

Re: How do I pass a variable with actions to the action field of an imagebutton?

What exactly is the traceback for the error? Thank you for your help. I finally figured out what the problem was. Initially, I thought I was missing something entirely, but it turned out to be an issue with the encoding format. I recreated the file with the proper encoding, and now everything works...
by Wildly
Sun Dec 24, 2023 10:02 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do I pass a variable with actions to the action field of an imagebutton?
Replies: 4
Views: 366

Re: How do I pass a variable with actions to the action field of an imagebutton?

init Python -> init python custom_function should be also defined before button_actions . Thanks for the response! I changed the "init python" and simplified the button_actions init python: button_actions = [Jump("label1")] However, I'm still encountering an invalid syntax error...
by Wildly
Sun Dec 24, 2023 8:15 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do I pass a variable with actions to the action field of an imagebutton?
Replies: 4
Views: 366

[Solved] How do I pass a variable with actions to the action field of an imagebutton?

Let's assume a variable has an array of actions like this: init Python: button_actions = [Function(custom_function, "arg1, arg2"), Jump("label1")] It is possible that this array can be changed with different actions. Down the road, I want to pass this variable to an imagebutton l...
by Wildly
Fri Nov 24, 2023 1:52 am
Forum: Ren'Py Questions and Announcements
Topic: How to achieve a smooth transition between Live2D scenes in Ren'Py?
Replies: 0
Views: 7932

How to achieve a smooth transition between Live2D scenes in Ren'Py?

Greetings! I have a question about achieving a smooth transition between two Live2D scenes. Here's the scenario: I have two scenes with numbers, one counting from 1 to 3 and the other from 4 to 7. They are looped. I want to give the user the ability to switch scenes without interrupting the counting...
by Wildly
Fri Nov 10, 2023 9:07 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to update default variable across game versions while preserving saved data?
Replies: 2
Views: 1299

Re: How to update default variable across game versions while preserving saved data?

m_from_space wrote: Sun Nov 05, 2023 3:14 pm Just check for the quest data inside the special label "after_load", which is executed right after a player loads a game.

Code: Select all

label after_load:
    if "some_quest" not in quests:
        ....
Thank you very much! That's what I need
by Wildly
Sun Nov 05, 2023 5:12 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to update default variable across game versions while preserving saved data?
Replies: 2
Views: 1299

[Solved] How to update default variable across game versions while preserving saved data?

I have a list of quests for the game version 1, which looks something like this: default quests = [ Quest(1, "QuestName", "Running"), Quest(2, "QuestName", "Pending"), ] But in the future, let's say in the game version 2 I want to add another quest to the list...
by Wildly
Tue Sep 26, 2023 1:00 am
Forum: Ren'Py Questions and Announcements
Topic: How do I check if there are any characters already on the screen?
Replies: 1
Views: 267

How do I check if there are any characters already on the screen?

I have a UI with many different Ren'Py screens that I would like to hide when a character appears. This way, my game's UI won't interfere with the characters during dialogue. The logic is quite straightforward: if there's a character shown on the screen, hide certain Ren'Py screens.