This is what works in my screens.rpy
Code: Select all
define clock_h1 = "clock/num 11.png"
screen sideInfo:
zorder 10
fixed:
add DynamicDisplayable("clock_h1") xpos 1576 ypos 112
- Position an ICON of players, at various locations. (Only ones that are visible)
- Change the players "State", to "sleeping" or "quest", or "sleeping and quest", or "none"
I can't even get an image to load, because it complains that anything I put, just can't be found, or is not defined... The path it shows is correct.
These are some things that didn't work...
Code: Select all
define ico_me = "ico/me.png"
image dd_me = DynamicDisplayable(ico_me)
define ico_me = "ico/me.png"
define dd_me = DynamicDisplayable(ico_me)
define ico_me = "ico/me.png"
image dd_me = DynamicDisplayable("ico_me")
define ico_me = "ico/me.png"
define dd_me = DynamicDisplayable("ico_me")
define ico_me = "ico/me.png"
image dd_me = DynamicDisplayable("[ico_me]")
define ico_me = "ico/me.png"
define dd_me = DynamicDisplayable("[ico_me]")
There is more than one CHR... "for CHR in chr.nameList"
I just simplified it to show what I am trying to do.
I left-out all the positioning code...
Code: Select all
python init:
def fSwapMyIcons():
global ico_me
global ico_you
CHR = "me"
Q = "sleeping"
ico_me = "ico/" + CHR + Q + ".png"
renpy.show("ico_" + CHR, layer="screens", zorder=11)
CHR = "you"
# ico_you is already a value, "ico/you.png"
renpy.hide("ico_" + CHR, layer="screens", zorder=11)
Code: Select all
python init:
def fSwapMyIcons():
CHR = "ico_me" + "sleeping"
ico_chr = "ico/" + CHR + Q + ".png"
renpy.show(ico_chr, layer="screens", zorder=11)
"image 'ico/me.png' could not be found"
or
"image 'ico_me' could not be found"
or
it crashes, pointing to an irrelevant location, complaining that "ico" is not defined. Though, nowhere in code, does "ico" exist, like that, as a value or string.
or
nothing is displayed