I have a clock as part of the GUI, that appears like so:

The clock is made of two seperate images, the face and the frame. Right now I have it as a screen, like so:
Code: Select all
screen clock:
add "ClockFace.png" xanchor 0.5 yanchor 0.5 xpos 1 ypos .1
add "ClockFrame.png" xanchor 0.5 yanchor 0.5 xpos 1 ypos .1Code: Select all
if hour == currenthour +1:
show clockface:
xanchor 0.5 yanchor 0.5
xpos 1 ypos .1
linear 0.5 rotate -72
if hour == currenthour +2:
show clockface:
xanchor 0.5 yanchor 0.5
xpos 1 ypos .1
linear 0.5 rotate -144
if hour == currenthour +3:
show clockface:
xanchor 0.5 yanchor 0.5
xpos 1 ypos .1
linear 0.5 rotate -216
if hour == currenthour +4:
show clockface:
xanchor 0.5 yanchor 0.5
xpos 1 ypos .1
linear 0.5 rotate -288
My question is, is there a way to include the latter code into a screen? If so, how would one write it? Thanks in advance.
