Search found 34 matches

by Li yuanlin
Mon Jun 27, 2022 8:14 am
Forum: Ren'Py Questions and Announcements
Topic: renpy 8.0/7.5 Text() in Composite() is unseen
Replies: 2
Views: 224

Re: renpy 8.0/7.5 Text() in Composite() is unseen

I see,got it,thanks for your reply.
by Li yuanlin
Mon Jun 27, 2022 6:01 am
Forum: Ren'Py Questions and Announcements
Topic: renpy 8.0/7.5 Text() in Composite() is unseen
Replies: 2
Views: 224

renpy 8.0/7.5 Text() in Composite() is unseen

screenshot.png init python: def make_avatar(text,xsize=75,ysize=70): return Composite( (xsize ,ysize), (0, 0), Transform(Solid("#fffa"),xsize=xsize,ysize=ysize), (0 , ysize/2), Text(text,color="#aaa",size=15,xalign=.5,yalign=.5,font="SourceHanSansCN-Bold.otf") ) ……… if current_collection[2] == "mak...
by Li yuanlin
Sat May 28, 2022 2:15 am
Forum: Ren'Py Questions and Announcements
Topic: I try to write a shader to make a border for rectangle,but something wrong。
Replies: 3
Views: 349

I try to write a shader to make a border for rectangle,but something wrong。

init python:#####rectangle borders renpy.register_shader("myshader.rectborders", variables=""" uniform float u_border_width; uniform float u_aspect; varying vec2 v_tex_coord; attribute vec2 a_tex_coord; uniform vec4 u_renpy_solid_color_rect; uniform vec4 u_renpy_solid_color_border; """,vertex_300="...
by Li yuanlin
Mon May 16, 2022 9:49 am
Forum: Ren'Py Questions and Announcements
Topic: it's there anyway to let renpy know which script file the running script code is in?
Replies: 3
Views: 287

Re: it's there anyway to let renpy know which script file the running script code is in?

PyTom wrote:
Sun May 15, 2022 3:16 pm
You can access this information with renpy.get_filename_line().
I mean the script saves load from,renpy.get_filename_line() seems returned the exact filename system statement called from :(
by Li yuanlin
Wed May 11, 2022 8:06 am
Forum: Ren'Py Questions and Announcements
Topic: renpy reload got transparent background and no character(Solved)
Replies: 9
Views: 466

Re: renpy reload got transparent background and no character

The problem is at line 128 of options.rpy label after_load: $ preferences.set_volume('ambient', 0.2) # $ renpy.quit_action = Quit(confirm=True) scene return scene statement removes all displayables from master layer, so any image will be removed when you load your game. Thank you so much! didn't mi...
by Li yuanlin
Wed May 11, 2022 8:02 am
Forum: Ren'Py Questions and Announcements
Topic: renpy reload got transparent background and no character(Solved)
Replies: 9
Views: 466

Re: renpy reload got transparent background and no character

This happens for me too for the first transition or so that occurs after using autoreload in game development. As Ocelot said, it's not important since it doesn't happen in normal games (where autoreload is not available). I mean it happened on loading saves,which needs fixed.Tried on pack game,loa...
by Li yuanlin
Wed May 11, 2022 7:19 am
Forum: Ren'Py Questions and Announcements
Topic: renpy reload got transparent background and no character(Solved)
Replies: 9
Views: 466

Re: renpy reload got transparent background and no character

Generally this happens with dynami images and implroper variable storage. I am afraid it is impossible to tell more without minimal reproducible example. I found all the images cannot load or reload are PNG files,while all the jpg files load and relaod correctly. These situations below cause a chec...
by Li yuanlin
Wed May 11, 2022 5:01 am
Forum: Ren'Py Questions and Announcements
Topic: renpy reload got transparent background and no character(Solved)
Replies: 9
Views: 466

Re: renpy reload got transparent background and no character

every dialogue right after the scene statement gets right scene png reload,but next dialogue canot reload scene after load or press shift+r
by Li yuanlin
Wed May 11, 2022 12:51 am
Forum: Ren'Py Questions and Announcements
Topic: renpy reload got transparent background and no character(Solved)
Replies: 9
Views: 466

Re: renpy reload got transparent background and no character

Generally this happens with dynami images and implroper variable storage. I am afraid it is impossible to tell more without minimal reproducible example. I found all the images cannot load or reload are PNG files,while all the jpg files load and relaod correctly. These situations below cause a chec...
by Li yuanlin
Sun Apr 03, 2022 10:03 am
Forum: Ren'Py Questions and Announcements
Topic: Cannot skip screen which has text with {cps},shown texts will stuck in the game screen..
Replies: 1
Views: 231

Cannot skip screen which has text with {cps},shown texts will stuck in the game screen..

screen text_title(s,xalign=0.4,yalign=0.5,size=30,color="#fff",outlines=[ (absolute(3), "#ff000033", absolute(0), absolute(0)) ],cps_num=6,font="SourceHanSerifCN-Bold.otf",text_move=True,transition=None,in_time=4.0,line_spacing=10,allow_skipping=False): $ quick_menu_enable = False $ config.allow_sk...
by Li yuanlin
Fri Feb 25, 2022 1:30 am
Forum: Ren'Py Questions and Announcements
Topic: How to make quit confirm shown when clicking close button?(Solved)
Replies: 3
Views: 307

Re: How to make quit confirm shown when clicking close button?

Imperf3kt wrote:
Fri Feb 25, 2022 1:27 am
generally all you need to do is use

Code: Select all

action Quit(confirm=True)
as the action for any button/imagebutton/textbutton, etc
I mean the close button on the game window's top right