viewtopic.php?t=16371
However, the code I created does not seem to be running.
I do not know the cause of this.
script.rpy
Code: Select all
call defines_characters
label start:
show jun egao at center
with dissolve
Code: Select all
label defines_characters:
define jun = Character('jun', image='jun', color="#297b7e", ctc='ctc_blink', ctc_position='nestled', voice_tag='jun')
$ autoImageLoader = store.AutoImageLoader('chara/')
$ autoImageLoader.autoRegisterImages('jun/fuku/', 'jun')
Code: Select all
init python:
class AutoImageLoader(object):
def __init__(self, base_folder_path):
self.base_folder_path = base_folder_path
def autoRegisterImages(self, folder_path, name):
path = self.base_folder_path + folder_path
for file in renpy.list_files():
if file.startswith(path) == False:
continue
if file.endswith('.png'):
file_name = file.replace(path, '').replace('.png', '')
renpy.image(name + ' ' + file_name, Image(path + file, yanchor=400))
Code: Select all
image jun egao = "chara/jun/fuku/egao.png"
show jun egao at center
with dissolve
If you know anything about this, please let me know.