Search found 1805 matches

by philat
Wed Jul 21, 2021 2:40 am
Forum: Ren'Py Questions and Announcements
Topic: Can I set the ypos of a textbox as equal to ypos of an imagebutton?
Replies: 6
Views: 624

Re: Can I set the ypos of a textbox as equal to ypos of an imagebutton?

You could fiddle with zorder and such to make it work, I imagine, but perhaps someone else will have a better idea.
by philat
Wed Jul 21, 2021 1:14 am
Forum: Ren'Py Questions and Announcements
Topic: Can I set the ypos of a textbox as equal to ypos of an imagebutton?
Replies: 6
Views: 624

Re: Can I set the ypos of a textbox as equal to ypos of an imagebutton?

I can't think of a very good way to do this off the top of my head, but a quick workaround that comes to mind is using an hbox with a null image. hbox: $ tt = GetTooltip() if tt: # add the actual tooltip here else: null width 200 # 200 is a placeholder - the width should be the width of the tooltip ...
by philat
Tue Jul 20, 2021 5:47 am
Forum: Ren'Py Questions and Announcements
Topic: How to make insensitive buttons have insensitive sound on click?
Replies: 2
Views: 462

Re: How to make insensitive buttons have insensitive sound on click?

Another option would be to simply use an If() or plain if conditions to have two different buttons or actions instead of utilizing the insensitive state.
by philat
Tue Jul 06, 2021 8:15 am
Forum: Ren'Py Questions and Announcements
Topic: Side images that stay on screen?
Replies: 4
Views: 1098

Re: Side images that stay on screen?

I don't think you can have more than one side image showing anyway since for side images the TAG itself is side, which means any side image would replace any other side image. Since you said you would define who's in the scene anyway, I don't see why you couldn't just do a round of show statements a...
by philat
Mon Jul 05, 2021 9:10 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Only one of two variables is updated in UDD
Replies: 7
Views: 849

Re: Only one of two variables is updated in UDD

If you're using watch xy_pos, then it's just not getting updated. I don't know what you're trying to DO with that xy_pos so I can't offer real advice, but you'll see it being updated in watch if you throw a renpy.restart_interaction() in there. If you're using the watcher in the developer tools, tha...
by philat
Mon Jun 28, 2021 7:38 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Can you change attributes in a duplicated class object independently?
Replies: 2
Views: 600

Re: Can you change attributes in a duplicated class object independently?

You need to either 1. create a new instance each time the debuff is applied (i.e., member.dot.append(DoT(args)) ) or 2. if you have something like poison = DoT(args) and you're doing member.dot.append(poison) , you need to deep copy that predefined instance. Googling deep copy python will turn up a ...
by philat
Thu Jun 24, 2021 9:02 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Logic statements in Screens
Replies: 5
Views: 641

Re: Logic statements in Screens

Code: Select all

for i in range(wood): 
   # doing stuff
is functionally equivalent to

Code: Select all

while counter < wood: 
   # doing stuff
    counter += 1
by philat
Thu Jun 24, 2021 7:05 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Logic statements in Screens
Replies: 5
Views: 641

Re: Logic statements in Screens

You can use a for loop in screens (but not while). It should be add, not show also.
by philat
Wed Jun 16, 2021 3:59 am
Forum: Ren'Py Questions and Announcements
Topic: Convert Twine 2 interactive story into Ren'py
Replies: 6
Views: 844

Re: Convert Twine 2 interactive story into Ren'py

Twee is the annotation system. Tweego is a program that can convert between twine (html file that can be opened in the Twine program) and twee both ways. Do whatever feels more comfortable for you, but my point is that since twee uses simple text notation it would be easier for you to convert that t...
by philat
Tue Jun 15, 2021 11:54 pm
Forum: Ren'Py Questions and Announcements
Topic: Convert Twine 2 interactive story into Ren'py
Replies: 6
Views: 844

Re: Convert Twine 2 interactive story into Ren'py

I'm not aware of any auto convert solutions but you can convert to twee (http://www.motoslave.net/tweego/ ) and working from there shouldn't involve all that much extra work.
by philat
Sun Jun 13, 2021 12:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Disabled buttons still enabled
Replies: 1
Views: 409

Re: Disabled buttons still enabled

Wouldn't it be simpler to use config.menu_include_disabled ? https://www.renpy.org/dev-doc/html/conf ... isabledYou
by philat
Thu Jun 10, 2021 12:27 am
Forum: Ren'Py Questions and Announcements
Topic: Automatically darkening characters that aren't speaking, layered image version
Replies: 10
Views: 870

Re: Automatically darkening characters that aren't speaking, layered image version

Caveat that I don't really use layered images, but I'm pretty sure you can also add normal attributes other than speaking_attribute as needed. Quick search shows a couple hits here that use speaking_attribute with layered images. ETA: Eh, my bad. Grabbed a layeredimage example to take a look, seems ...
by philat
Wed Jun 09, 2021 11:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Customizing/Changing Rollback function in Renpy
Replies: 2
Views: 673

Re: Customizing/Changing Rollback function in Renpy

Rollback is based on statements (i.e., it will rollback to the preceding statement ) but IIRC everything in a python block is treated as one statement. Possibly also things happening in a while loop, although I haven't tested that and can't be assed to do so right now. So, despite it being slightly ...
by philat
Wed Jun 09, 2021 11:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Automatically darkening characters that aren't speaking, layered image version
Replies: 10
Views: 870

Re: Automatically darkening characters that aren't speaking, layered image version

You can just wrap the whole image in a matrixcolor transform now, I'm pretty sure. transform grayscale: matrixcolor SaturationMatrix(0.0) define testchar = Character("test", image="test") image test speaking = "yourimage" image test = At("yourimage", grayscale) define config.speaking_attribute = "sp...
by philat
Sun Jun 06, 2021 9:18 am
Forum: Ren'Py Questions and Announcements
Topic: Line id indented, but the preceding one-line python statement statement does not expect a block?
Replies: 4
Views: 1108

Re: Line id indented, but the preceding one-line python statement statement does not expect a block?

There shouldn't be a colon after $ randaction = renpy.random.choice(["attack", "defend"]) and the blocks under it shouldn't be indented.