Search found 113 matches

by Adrian_DVL
Sun Apr 26, 2020 1:57 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Calling a label with an object name in it from a button
Replies: 1
Views: 176

Re: Calling a label with an object name in it from a button

Fixed taking the best of both worlds, with the .format thing but without renpy.call. After all, we all know call is not equivalent to renpy.call... :P

Code: Select all

action Call("{0}_main".format(thing))
Keeping the thread around if it can be useful to somebody!
by Adrian_DVL
Sun Apr 26, 2020 12:43 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Calling a label with an object name in it from a button
Replies: 1
Views: 176

[Solved] Calling a label with an object name in it from a button

Hi all! Let's say I have a class called "Thing", with some objects, named "object1", "object2", "object3", etc. Then I have a label for each object: "label object1_main", "label object2_main", "label object3_main", etc. Now I have a screen with the class passed as a parameter, let's say "myscreen(th...
by Adrian_DVL
Sat Apr 25, 2020 9:09 am
Forum: Ren'Py Questions and Announcements
Topic: Randomizing a doubly conditioned menu
Replies: 2
Views: 203

Re: Randomizing a doubly conditioned menu

have you tried using menu sets? those will eliminate the choices that have been selected or picked already. default menu_set = [] label start: menu: set menu_set "choice 1": pass "choice 2": pass jump start now something more related to issue... default parameters = [aim.hob, aim.hei, aim.sea, aim....
by Adrian_DVL
Sat Apr 25, 2020 8:09 am
Forum: Ren'Py Questions and Announcements
Topic: Randomizing a doubly conditioned menu
Replies: 2
Views: 203

Randomizing a doubly conditioned menu

Hi all! Let me try to explain my situation. I have a class with many objects, each of them has a lot of parameters, but let's focus on 12 of them. I want to implement a completely randomized menu that each time displays three choices regarding those 12 parameters. When the choice linked to each para...
by Adrian_DVL
Wed Apr 15, 2020 11:16 am
Forum: Ren'Py Questions and Announcements
Topic: One video after another in main menu
Replies: 5
Views: 390

Re: One video after another in main menu

Well, I tried the before_main_menu label and it indeed works. The problem is that between the intro of the video (i.e. the before_main_menu) and the video itself and the menu buttons (i.e. the screen main_menu) there's one or two frames in which the screen goes black and with no music. I tried fixi...
by Adrian_DVL
Wed Apr 15, 2020 10:18 am
Forum: Ren'Py Questions and Announcements
Topic: One video after another in main menu
Replies: 5
Views: 390

Re: One video after another in main menu

Well, I tried the before_main_menu label and it indeed works. The problem is that between the intro of the video (i.e. the before_main_menu) and the video itself and the menu buttons (i.e. the screen main_menu) there's one or two frames in which the screen goes black and with no music. I tried fixin...
by Adrian_DVL
Tue Apr 14, 2020 6:01 pm
Forum: Ren'Py Questions and Announcements
Topic: One video after another in main menu
Replies: 5
Views: 390

Re: One video after another in main menu

Use the special label before_main_menu to play your short video. https://www.renpy.org/doc/html/label.html?highlight=before_main_menu#special-labels Will you marry me? Hahaha! Seriously, thank you very much! The thing is that I did know about this but it didn't come to mind, it seems. I can't test ...
by Adrian_DVL
Tue Apr 14, 2020 5:00 pm
Forum: Ren'Py Questions and Announcements
Topic: One video after another in main menu
Replies: 5
Views: 390

One video after another in main menu

Hi all! So, I have a game where I play a video in the main menu, instead of a still image. I defined it like this, in screens.rpy: image main_menu = Movie(channel="main_menu", play="gui/intro.webm", loop=True) And I added it inside the screen main_menu, so the outcome is a video that plays in a loop...
by Adrian_DVL
Tue Apr 14, 2020 5:11 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Preventing the player to progress while in a screen
Replies: 2
Views: 386

Re: Preventing the player to progress while in a screen

Milkymalk wrote:
Tue Apr 14, 2020 4:54 am
Call another (empty) screen. This will "lock" the player interaction until you issue a "return" of some kind.
Yeah, that's what I ended up doing. Thank you!
by Adrian_DVL
Fri Apr 10, 2020 12:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Counting the total game time but dismissing the one that wasn't saved
Replies: 1
Views: 189

Re: Counting the total game time but dismissing the one that wasn't saved

Bump! Can anybody help, please? I thought about calling the function only when player saves the game, but that would imply that the time displayed in the screen would always be outdated...
by Adrian_DVL
Thu Apr 09, 2020 11:28 am
Forum: Ren'Py Questions and Announcements
Topic: Counting the total game time but dismissing the one that wasn't saved
Replies: 1
Views: 189

Counting the total game time but dismissing the one that wasn't saved

Hi again! Here's the thing: one of the screens in my game shows the played time, the hours and minutes that player has spent in the game, since he begins the run until the game finishes. To do this, I've pulled out the renpy.get_game_runtime() and made this: init -1 python: if not persistent.runtime...
by Adrian_DVL
Thu Apr 09, 2020 4:42 am
Forum: Ren'Py Questions and Announcements
Topic: How do I alternate a screen from being modal and non modal?
Replies: 2
Views: 214

Re: How do I alternate a screen from being modal and non modal?

From what you describe, the screen is a red herring. It isn't that the screen needs to be flipped modal true to modal false, it is that you want to block user interaction for some times and not others. This is doable in a variety of ways...but I do have questions--some for me to understand, and som...
by Adrian_DVL
Wed Apr 08, 2020 11:27 am
Forum: Ren'Py Questions and Announcements
Topic: How do I alternate a screen from being modal and non modal?
Replies: 2
Views: 214

How do I alternate a screen from being modal and non modal?

Okay, I've asked this a few hours ago, but I was all mixed up. So how can I make it so that a non modal screen that is shown becomes modal after some interactions with the scenes in the background? I mean, I want to, while the player is going through a scenes and text label, show a screen with butto...
by Adrian_DVL
Wed Apr 08, 2020 5:12 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Preventing the player to progress while in a screen
Replies: 2
Views: 386

[Solved] Preventing the player to progress while in a screen

Hi mates! Situation: I have a game where there are parts of straight VN and parts of dating sim, in which I add screens that act as menus for the different options and -and I think this is important- they include imagebuttons, not an imagemap or whatever. Okay, now I want to show screen whatever-its...
by Adrian_DVL
Sun Apr 05, 2020 7:15 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] A way to advance through the scenes playing a minigame?
Replies: 4
Views: 279

Re: A way to advance through the scenes playing a minigame?

You do not need to manually scene/show/replace the background image, you can just have it as a dynamic... default memgoodp = 0 image dynamic_background = "images/background_[memgoodp].png" label start: scene dynamic_background ## showing "images/background_0.png" "..." $ memgoodp += 1 ## now showin...