Timty Posted May 14, 2020 Posted May 14, 2020 Hi everyone, Â how to make a player show attack frame while is moving? Â Â Will line changes in Entity.cs do it? Â Thanks, Tim
0 Shenmue Posted May 14, 2020 Posted May 14, 2020 You can go on the "UpdateSpriteAninmation" method in "Intersect.Client.Entities.Entity" and move the code block related to attacking before the one of moving. Something like the code below should work. Â if (AttackTimer > Globals.System.GetTimeMs()) //Attacking { ... } else if (IsMoving) { ... } Â Timty 1
0 gooby Posted May 14, 2020 Posted May 14, 2020 i think you all you have to do is to define: Â Â Â Â Â Â public bool IsAttacking and include that in Client/Entity.cs/UpdateSpriteAnimation() here: Â Â Â Â Â Â Â if (IsMoving && !IsAttacking) and set IsAttacking to true/false in Client/Player.cs/Update()
Question
Timty
Hi everyone,
Â
how to make a player show attack frame while is moving?
Â
Â
Will line changes in Entity.cs do it?
Â
Thanks,
Tim
2 answers to this question
Recommended Posts