- Nov 4, 2022
- 5
- 0
I've checked similar flicker issues in the forum but I couldn't fix my issue with them.
My imagebutton flickers when following screen is shown:
And this is the button's script
I have a timer script as well but when I comment it out, the flicker continues.
This is the timer's script (credits to the anne O'nymous , post -> https://f95zone.to/threads/how-to-interval-timer.11650/). Note that flicker persists even if this code is not active.
So, can you guys help me?
My imagebutton flickers when following screen is shown:
JavaScript:
screen value:
zorder 1
vbar:
value AnimatedValue(barval, 100, 0.1)
xalign 0.5
ymaximum 300
bar:
value AnimatedValue(timebarval, 100, 0.1)
xalign 0.5
yalign 0.7
xmaximum 300
key "K_SPACE" action If(barval <= 46, true = SetVariable("barval", (barval + 6)), false = NullAction())
JavaScript:
screen HUD:
zorder 10
imagebutton auto "map_%s":
focus_mask True
hovered SetVariable("screen_tooltip", "Map")
unhovered SetVariable("screen_tooltip", "")
action Call("map_screen")
This is the timer's script (credits to the anne O'nymous , post -> https://f95zone.to/threads/how-to-interval-timer.11650/). Note that flicker persists even if this code is not active.
JavaScript:
init python:
intervalCounter = 0
def myTimer():
store.intervalCounter += 9
if intervalCounter < 10:
return
store.intervalCounter = 0
store.timebarval -= 1
if store.barval > 0:
store.barval -= 2
renpy.restart_interaction()