Continue from my latest threads with my journey and learning as I go...
Now I got into a new issue that I'm scratching my head can't solve it.
I'm using 2 Separate IGNORE systems on my Player Engine:
- When the player collide with enemy he will Knocked-Back + IGNORE for 1 second.
I also made an "Animation-Priority-System" so I can overwrite any other animation like in this case I want it to cancel any animation and play the "HIT" animation while the knock-back is happening.
- When the player press 'C' = Attack animation starts + IGNORE Player for less than a second.
I made it so it will stop the Player on any movement including Walk / Jump / Fall while attacking.
The mechanic's goal is to limit he player so he won't be able to MOVE while attacking.
When testing each case of the 2 Ignore, separately they are working GREAT!
When the player Jump or Fall while Attack + Collide with the Enemy there is a mess with the 2 ignores and it seems like currently it won't use the "MAIN" ignore as I want (IGNORE #1 with Knock-Back for 1 second)
The result is mix of both and more like (IGNORE #2 the attack stops) mess it.
It's probably an animation issue, I did try to solve it with the Animation-Priority-System I made yesterday which saved my Knocked-Back animation, which supposed to be the highest one.
The animation does work on the highest priority but the IGNORE is NOT... working and I can control the Player while he is on the "Knock-Back" animation which is NOT supposed to happen.
Again, if I test each IGNORE situation separate they work fine.
I tried to add stuff such as:
if Attack Animation is playing or while it is playing and stuff like that, nothing solved the IGNORE issue, the animation plays correct, but not ignored as it should.
I'm not sure exactly how to fix this and hope you can help me out, I know it's hard without exploring my actual capx which I can't share but I'll do my best to show and give information.
It's not a super secret capx, I just keep it as it's about to be my official game project, I hope that you understand and willing to help, I appreciate it a lot.
Thanks ahead and Sorry about my bad English.