I've been working on an action RPG combat system using twine, and I've been using the <<repeat 100ms>> and <<replace>> macros to dynamically update player health bars, and cooldowns to the next enemy attack.
I used this method for my health bars: https://twinery.org/forum/discussion/2751/health-bars
But due to the rapid replacing of such health bar images every 100ms, the health bars don't update smoothly at all, and rather they flash rapidly.
Here's an example of :
<<set $enemy_cd to $enemy_cd - 1>>
<<if $enemy_cd <= 0>>
<<set $enemy_cd to 0>>
My <<enemy_attack>> widget basically resets the $enemy_cooldown variable to 50 (basically the enemy attacks the player every 5 seconds) and restarts the repeat macro.