Timty Posted May 14, 2020 Share 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 Link to comment Share on other sites More sharing options...
0 Shenmue Posted May 14, 2020 Share 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 Link to comment Share on other sites More sharing options...
0 gooby Posted May 14, 2020 Share 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() Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
2 answers to this question
Recommended Posts