Search found 21 matches

by dasauto1
Wed Nov 03, 2021 12:54 pm
Forum: Ren'Py Questions and Announcements
Topic: Screen random values
Replies: 4
Views: 301

Re: Screen random values

I solved my problem with the suggested solution, the mods may close this now. Or whatever.
by dasauto1
Wed Nov 03, 2021 11:30 am
Forum: Ren'Py Questions and Announcements
Topic: Screen random values
Replies: 4
Views: 301

Re: Screen random values

zmook wrote:
Wed Nov 03, 2021 11:26 am
Is it feasible to make the random choice outside the screen?

Code: Select all

   $ chosen_thing = renpy.random.choice(things)
   call screen myscreen(chosen_thing)
It is feasible yes, I thought of it actually. I thought though there might be a simpler solution. Thanks.
by dasauto1
Wed Nov 03, 2021 11:15 am
Forum: Ren'Py Questions and Announcements
Topic: Screen random values
Replies: 4
Views: 301

Screen random values

I'm using renpy.random.choice() in a certain screen, the problem is that whenever I trigger anything or modify any value or show a menu, the renpy.random.choice() is updated. How do I prevent this from happening? Like I only want the random function to refresh when I show the screen again. Thanks.
by dasauto1
Tue Nov 02, 2021 8:34 am
Forum: Ren'Py Questions and Announcements
Topic: Text causes other screen elements to shift/displace when hovered
Replies: 5
Views: 330

Re: Text causes other screen elements to shift/displace when hovered

You can also solve this by changing your art assets instead, by having an invisible transparent box around your un-hovered button that takes up the same space as the big button. So, if your smaller button is 50 x 50px and your big button is 80 x 80px, make the first button 50x50 but with a transpar...
by dasauto1
Mon Nov 01, 2021 2:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Text causes other screen elements to shift/displace when hovered
Replies: 5
Views: 330

Re: Text causes other screen elements to shift/displace when hovered

The button is inside an hbox and the other elements are in another hbox. both hbox are same level children of a vbox.
by dasauto1
Mon Nov 01, 2021 12:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Text causes other screen elements to shift/displace when hovered
Replies: 5
Views: 330

Text causes other screen elements to shift/displace when hovered

I have a textbutton that gets bigger in size when is hovered. this causes other screen elements to be displaced accordingly. How do I isolate this textbutton? thanks.