Code: Select all
:
$ path = "images/logo_base.png"
image logo = "[path]"
Code: Select all
:
$ path = "images/logo_base.png"
image logo = "[path]"
Code: Select all
image logo = path
Code: Select all
init python:
path = "images/logo_base.png"
image logo = path
label start:
show logo
"1"
hide logo
$ path = "images/logo_mini.png"
"2"
show logo
"3"
return
Code: Select all
show path
Code: Select all
show expression path
Code: Select all
image dynamic_image = "[path].png"
Code: Select all
$path = "folder/name"
show dynamic_image
Alex wrote:When tryhttp://www.renpy.org/doc/html/displayin ... -statementCode: Select all
show expression path
Thank you both for answers they work great. Newest version of dynamic image works better because you don't have to show image again to see change. Here code for anyone to test themselvesnyaatrap wrote:Here is a modern way (6.99.7~) http://www.renpy.org/doc/html/displayab ... namicImageCode: Select all
image dynamic_image = "[path].png"
In 6.99.7, "path" is parsed as DynamicImage("path") when [] is included by default. Otherwise, it's parsed as Image("path")Code: Select all
$path = "folder/name" show dynamic_image
Code: Select all
init python:
path = "images/logo_base.png"
label start:
show expression path
"1"
$ path = "images/logo_mini.png"
"2"
show expression path
"3"
return
Code: Select all
init python:
path = "images/logo_base.png"
image dynamic_image = "[path]"
label start:
show dynamic_image
"1"
$ path = "images/logo_mini.png"
"2"
return
Users browsing this forum: No registered users