As part of a visual countdown timer project I'm trying to get my falling column to fall 'smoothly'. At the moment it decreases in height every second but in a very 'chunky' step like manner!
I've tried to experiment with subtracting milliseconds instead, but I'm tangling myself up in the logic and not getting anywhere!
Grateful for any help.
Code: Select all
repeat(field"Seconds")
# Seconds is the countdown start time
# tCol is the starting height of the column
# tHt is the 'remaining' height of the column
wait 1 second
subtract 1/field"Seconds" * tHt from tCol
set height of graphic"Col" to tCol
set the bottom of graphic "Col" to 50
end repeat