Best way to animate Stamina Bar
Posted: 14 Mar 2025, 15:48
Hi,
I want to animate a Stamina Bar.
In my blueprints, I update the value on every tick if there are changes and send them to Noesis.
But the progress bar is not nicely animated; it just flickers.
I have already tried sending the values only every 0.5 seconds, but it still doesn't display smoothly.
Do I need to change something in my blueprints or in the XAML?
Thanks and best regards
I want to animate a Stamina Bar.
In my blueprints, I update the value on every tick if there are changes and send them to Noesis.
But the progress bar is not nicely animated; it just flickers.
I have already tried sending the values only every 0.5 seconds, but it still doesn't display smoothly.
Do I need to change something in my blueprints or in the XAML?
Thanks and best regards
Code: Select all
<Storyboard x:Key="StaminaBarAnimation">
<DoubleAnimation
Storyboard.TargetName="StaminaBar"
Storyboard.TargetProperty="Value"
Duration="0:0:0.3"/>
</Storyboard>
.
.
<ProgressBar x:Name="StaminaBar"
Width="200"
Height="20"
Minimum="0"
Maximum="{Binding MaxStamina}"
Value="{Binding Stamina}"
Visibility="{Binding IsStaminaBarVisible}"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Margin="0,80,0,0"/>