I need a time progress bar, a red line which reduces its length every second.
I searched in vain for a Draw function, so can anybody help.
I tried to make a line sprite and decrease width, which works, but it won´t stay in place, even if i did this:
Timeline sprite is at start 900 pixels wide and TimeLeft starts at 300.
Do every second
Timeline.width = TimeLeft*3
Timeline.X = 675 (which should keep it in place, but it still shortens at both ends)
Drawing a line every Tick would do the trick, I think.