Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ UpdateAnim()

void Terraria.GameContent.UI.Elements.UICharacter.UpdateAnim ( )
inlineprivate

Definition at line 87 of file UICharacter.cs.

88 {
89 if (!_animated)
90 {
91 _player.bodyFrame.Y = (_player.legFrame.Y = (_player.headFrame.Y = 0));
92 return;
93 }
94 int num = (int)(Main.GlobalTimeWrappedHourly / 0.07f) % 14 + 6;
95 _player.bodyFrame.Y = (_player.legFrame.Y = (_player.headFrame.Y = num * 56));
96 _player.WingFrame(wingFlap: false);
97 }
void WingFrame(bool wingFlap)
Definition Player.cs:27719

References Terraria.GameContent.UI.Elements.UICharacter._animated, Terraria.GameContent.UI.Elements.UICharacter._player, Terraria.Main.GlobalTimeWrappedHourly, and Terraria.Player.WingFrame().

Referenced by Terraria.GameContent.UI.Elements.UICharacter.DrawSelf().