Search found 2437 matches

by Alex
Wed Apr 01, 2020 1:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]load problem in game
Replies: 7
Views: 161

Re: load problem in game

...I go this from here I have already post the problem there but no answer https://lemmasoft.renai.us/forums/viewtopic.php?f=52&t=54801#p511019 ... I've downloaded the project and it works fine. Didn't you customize the confirm screen? When you trying to load in midgame the confirm screen pops up, ...
by Alex
Mon Mar 30, 2020 2:30 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Scrolling screen resetting after each dialogue
Replies: 7
Views: 159

Re: Scrolling screen resetting after each dialogue

...but I get an error "Exception: Possible infinite loop" when I try to load it. "show screen" solves the dialogue problem but appears to be causing this issue. How do I change my results to work with "show screen"?... label calendar_explore: show screen calendar_scroll $ result = _return The thing...
by Alex
Sat Mar 28, 2020 2:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Custom displayable - child not rendering, no errors [SOLVED]
Replies: 2
Views: 88

Re: Custom displayable - child not rendering, no errors

Not sure, but looking at this t = Transform(xpos = 0, ypos = 0) child_render = renpy.render(t, width, height, st, at) it seems that 't' must actually show the 'sword', like in docs t = Transform(child=self.child, alpha=self.alpha) # Create a render from the child. child_render = renpy.render(t, widt...
by Alex
Fri Mar 27, 2020 5:27 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Tooltip showing the values of all objects in a for loop
Replies: 6
Views: 113

Re: Tooltip showing the values of all objects in a for loop

... You check if tooltip: for each button, but no matter what button you hovering they all set the same variable 'tooltip', so condition became true for all buttons. In code sample tooltip was showing once and not for each textbutton. Try the solution gas gave - https://lemmasoft.renai.us/forums/vi...
by Alex
Fri Mar 27, 2020 4:36 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Tooltip showing the values of all objects in a for loop
Replies: 6
Views: 113

Re: Tooltip showing the values of all objects in a for loop

What's the actual code you are using? Did you placed imagebuttons inside a vbox? How big are images used for imagebuttons - any chance they are overlap each other? Try to set 'focus_mask' property for imagebuttons - https://www.renpy.org/doc/html/style_properties.html#button-style-properties Also ch...
by Alex
Fri Mar 27, 2020 2:15 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Scrolling screen resetting after each dialogue
Replies: 7
Views: 159

Re: Scrolling screen resetting after each dialogue

You need to store the values of the viewport adjustments. https://www.renpy.org/doc/html/screens.html#viewport https://www.renpy.org/doc/html/screen_python.html#ui.adjustment screen vp_scr(): frame: align(0.5, 0.5) side "c b r": area (0, 0, 200, 200) viewport id "my_vp": draggable True xadjustment m...
by Alex
Wed Mar 25, 2020 2:07 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Drag and drop puzzle with multiple pieces
Replies: 6
Views: 251

Re: Drag and drop puzzle with multiple pieces

... How do I change the co-ordinates so I don't break the code? ... Try something like init python: def piece_dragged(drags, drop): if not drop: return if drop.drag_name == drags[0].drag_name: i = drags[0].drag_name # 'cause we used "ind" as a name of draggable piece drags[0].snap(drop.x, drop.y, d...
by Alex
Mon Mar 23, 2020 4:10 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Drag and drop puzzle with multiple pieces
Replies: 6
Views: 251

Re: Drag and drop puzzle with multiple pieces

Hm, you could cut your map on rectangles (like the red ones) to make draggable pieces. And also made a set of droppables - color the lands in all pieces the same color and leave some transparent canvas around. Then place those droppables at the right positions over the same color background. This sh...
by Alex
Wed Mar 18, 2020 4:40 pm
Forum: Ren'Py Questions and Announcements
Topic: I want to make sprites in SpriteManager collide, is it possible?
Replies: 3
Views: 198

Re: I want to make sprites in SpriteManager collide, is it possible?

Check this sample - https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=29439#p348727 So, you can have all your sprites as an objects with x, y, width, height properties, and create a function to determine collisions to use it in repulsor_update function. Try something like init python: def get_si...
by Alex
Mon Mar 16, 2020 5:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to create macros with renpy? [SOLVED]
Replies: 10
Views: 253

Re: Is there a way to create macros with renpy?

Try it like this may be...

Code: Select all

transform door01:
    print ("test")
    pause 1.0
    linear 0.5 alpha 0.0
    "bg door02"
    alpha 0.0
    linear 0.5 alpha 1.0

image bg door01:
    contains door01
https://www.renpy.org/doc/html/atl.html ... -statement