Hello All,
I will do my best to explain what I did so maybe you can help me find a different solution for my issue.
Just to be clear: (you can skip this part)
Since I'm still a newbie who got lots more to learn in Construct 3, After working on my base-engine game focus on the Player mechanics I had so many issues and bugs that I've decided to Re-Code everything with much more organized way.
So I made dedicated event sheet for the Player and one for the Enemies, I've created groups, comments and even an ON-SCREEN colorful Debug-Text that is really to-the-point for me to follow and test (I know that there is a wonderful debug-mode on C3, but it was hard for me to follow it) ANYWAY! everything is nice and easier compare to my first attempt of the code for my game and I learned new things on the way, good practice.
So far so good, now... for THE ISSUES:
I'm pretty sure that I code the all thing wrong and I need a different approach on how to do it:
The instance (text) variable: "Movement" is set to "unlock" when the player is moving, jumping, etc..
But when the Player Attacks it will set to "locked!" which will deactivated the INPUT-CONTROLS group and then activated.
What it does basically is: when the Player attacks while in ANY movement, walking on floor / not on floor while jump, falling, he will stop moving even if you hold the right, left, jump, he stops on mid air or on the floor, do the attack and when the attack animation is done he can keep walking.
This short example is just a RANDOM time when the player attacks and stuck,
It's not happen just when he fall or jump, it could randomly happen just when he attacks on the floor as well:
That "Movement" instance variable is obviously where the bug is, but I'm sure it's also the wrong way of do the all freeze-player after each attack while moving.
That's the mechanics I want to make for my game, I know it will be easier to do without it... especially as a newbie but it FEELS exactly as I imagined it on my simple brain.
The thing is... it's working!
kind of, because I have a bug that sometimes randomly it will keep the Player on "locked!" which will freezes my Player. it's obviously related to that "MOVEMENT" instance variable I created and it's all over the place on my code, on any move as I explained so I can get rid of it and should find a different approach instead.
I know it will be impossible help me fix the bug without sharing my capx, the reason I'm not sharing it is because my goal is to make it my official game, I hope that you understand.
I'm not interested trying to FIX this bug because I already tried and my brain can't figure it out, I hope that you can still help me find a DIFFERENT WAY to code such thing.
Maybe there is a more simple way? maybe even using some extra Plugin as a shortcut?
Thanks ahead and sorry about my bad English.