Search found 113 matches

by Adrian_DVL
Sun Sep 05, 2021 1:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Hiding all the screens in a script
Replies: 1
Views: 233

Hiding all the screens in a script

Hi! Here's my question. Turns out that I have a function to hide many screens at once, like this: def hides(): renpy.hide_screen("homozoe1") renpy.hide_screen("homomay1") renpy.hide_screen("homovic1") renpy.hide_screen("homolau1") renpy.hide_screen("homobil1") renpy.hide_screen("homochr1") But the t...
by Adrian_DVL
Thu Sep 02, 2021 7:23 am
Forum: Ren'Py Questions and Announcements
Topic: Remove function not working
Replies: 2
Views: 379

Re: Remove function not working

So there is roughly what happens when you create a Qlist object(pseudocode not an actual code): Qlist.__create__: # class initialization self.add = <function>(someaddress) self.addop = <function>(someaddress) self.opdone = <function>(someaddress) self.done = <function>(someaddress) # executing init...
by Adrian_DVL
Thu Sep 02, 2021 5:51 am
Forum: Ren'Py Questions and Announcements
Topic: Remove function not working
Replies: 2
Views: 379

Remove function not working

Hi! My problem is simple and quite absurd, I must say, but I must be missing something that I'm not seeing. I have this class with some functions: class Qlist(renpy.store.object): def __init__(self): self.quests = [] self.done = [] def add(self, quest): self.quests.append(quest) def addop(self, ques...
by Adrian_DVL
Wed Sep 01, 2021 2:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Can't go back to the previous videos
Replies: 2
Views: 428

Re: Can't go back to the previous videos

It looks like your screens with clips nether been hidden, so when you click button second time the screen still stands behind other screens. Try to add the same tag for all screens with clips (like tag menu for all menus) - https://www.renpy.org/doc/html/screens.html#screen-statement Yep, that's wh...
by Adrian_DVL
Wed Sep 01, 2021 12:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Can't go back to the previous videos
Replies: 2
Views: 428

Can't go back to the previous videos

Hi! Okay, here's the thing. I have a video based on several clips, each of them is triggered with a button that is unlocked by waiting a number of seconds after the start of the previous one. For that, I have a screen with timers, variables and buttons (maybe not the most efficient way to do this): ...
by Adrian_DVL
Wed Sep 01, 2021 12:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Getting a different object when clicking a button
Replies: 2
Views: 564

Re: Getting a different object when clicking a button

I don't understand the purpose of your add and drop functions in the class if you will not use those... action [Function(inventory.drop, buc), Function(inventory.add, buw), Play("sound", "audio/obt.mp3"), Notify(buw.noti)] Truth is I didn't think about the Function action haha Anyway, my problem wa...
by Adrian_DVL
Tue Aug 31, 2021 9:01 am
Forum: Ren'Py Questions and Announcements
Topic: Getting a different object when clicking a button
Replies: 2
Views: 564

Getting a different object when clicking a button

Hi! So I'll try to be quick. I have these functions: class Inventory(renpy.store.object): def __init__(self): self.items = [] def add(self, item): self.items.append(item) def drop(self, item): self.items.remove(item) def item_add(): inventory.add(item) def item_drop(): inventory.drop(item) And I hav...
by Adrian_DVL
Sat Jan 30, 2021 7:33 am
Forum: Ren'Py Questions and Announcements
Topic: Different textbox position depending on the situation
Replies: 6
Views: 469

Re: Different textbox position depending on the situation

Remix wrote:
Thu Jan 28, 2021 3:28 pm
You could adapt my Speech Bubble dialogue system to your needs...

https://github.com/RenpyRemix/speech-bubbles
Your system made my day, man! Thank you so much!
Also, thanks to _ticlock_ and Alex as always!
by Adrian_DVL
Thu Jan 28, 2021 9:55 am
Forum: Ren'Py Questions and Announcements
Topic: Different textbox position depending on the situation
Replies: 6
Views: 469

Different textbox position depending on the situation

Hi! I'd like to change the position of the textbox depending on the situation, and by it I don't mean that I want three or four different positions and neither do I mean I want different characters to have different positions for their textbox, because I'd already know how to do it. The thing is tha...
by Adrian_DVL
Thu Jan 21, 2021 10:26 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Looking for the right event handler for a transform
Replies: 2
Views: 262

Re: Looking for the right event handler for a transform

Hi, Adrian_DVL , That's doable, although there is no straightforward way to achieve it (there is no magic event handler that solves all your problems). I think this post may give you some ideas. That post gave me an idea, and I set a net of variables that are used to tell the game whether a button ...
by Adrian_DVL
Wed Jan 20, 2021 2:40 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Looking for the right event handler for a transform
Replies: 2
Views: 262

[Solved] Looking for the right event handler for a transform

Hi! Okay, so in a nutshell: I have a screen with an imagebutton that changes a variable. When that variable changes, some images in the screen are replaced by others with the same size and in the same position. So far, so good: the player clicks a button and some of the images in the screen may chan...
by Adrian_DVL
Thu Jan 07, 2021 3:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Screen showed at unhovered doesn't hide after Renpy update
Replies: 0
Views: 310

Screen showed at unhovered doesn't hide after Renpy update

Hi! So I have a screen with buttons which, when hovered by the mouse, pop up other screens as a tooltip, and hide these screens when unhovered. This always worked fine and smooth. But today I've updated Renpy to 7.4 and since then, the tooltip screens won't hide when I unhover the buttons. Can anyon...
by Adrian_DVL
Thu Jan 07, 2021 10:10 am
Forum: Ren'Py Questions and Announcements
Topic: About changing variables in imagebuttons
Replies: 1
Views: 281

About changing variables in imagebuttons

Hi! Let's see, this is going to be long, so I apologize in advance. I have a complex screen that acts like the end screen for missions in which the player gathers items with different values for food, power and money, which then are distributed to the tastes of the player to increase his own food, p...
by Adrian_DVL
Thu Jan 07, 2021 5:18 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] On hover animation
Replies: 4
Views: 498

Re: On hover animation

Hi, Adrian_DVL , Here is an example with 2 imagebuttons. I used the variable on_hover , that controls which transform is used( itshake or z_zoom ). The value of the variable on_hover is used to figure out which imagebutton is hovered ( on_hover =1 for first button, on_hover =2 for 2nd button) Works...
by Adrian_DVL
Wed Jan 06, 2021 8:36 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] On hover animation
Replies: 4
Views: 498

Re: On hover animation

Try to set 'on idle' event for your transform instead of 'on show'. Then set 'on hover' event as well. https://www.renpy.org/doc/html/atl.html#on-statement 'on idle' doesn't work at all, no matter the indentation or the order I put it on, and I'm thinking that's because the transform does not act o...