As the title says I am needing help regarding a custom change for my project in the source code that handles the animations part specifically in the UpdateSpriteAnimation() method of the client Entity.cs file, see the details in the next paragraph.
Â
I need to change the attack animations between a punch and a kick Randomly, I have created the code that is marked in red to test but I see that when pressing the attack key the code to assign the spriteAnimation is executed 2 times and the attack animations overlap, see the code:
Â
Spoiler
Â
Â
My attack animations have 2 frames:
Spoiler
Â
Some people from the community discord server have mentioned to me that it may be related to the movement speed of the player and the attack speed that is causing the animation to run 2 times, here I leave the configuration of both speeds of my player:
Â
Spoiler
Â
Â
Â
Any recommendation ? I think the problem may be related to my condition to check if it is attacking but I'm not sure.
Question
Blinkuz
As the title says I am needing help regarding a custom change for my project in the source code that handles the animations part specifically in the UpdateSpriteAnimation() method of the client Entity.cs file, see the details in the next paragraph.
Â
I need to change the attack animations between a punch and a kick Randomly, I have created the code that is marked in red to test but I see that when pressing the attack key the code to assign the spriteAnimation is executed 2 times and the attack animations overlap, see the code:
Â
Â
Â
My attack animations have 2 frames:
Â
Some people from the community discord server have mentioned to me that it may be related to the movement speed of the player and the attack speed that is causing the animation to run 2 times, here I leave the configuration of both speeds of my player:
Â
Â
Â
Â
Any recommendation ? I think the problem may be related to my condition to check if it is attacking but I'm not sure.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now