thank you very much sorry for the late response, issue solved!!!
Develop games in your browser. Powerful, performant & highly capable.
I set two variable for p1,p2 in action (meaning, they'll punch, defend or do nothin') and p1,p2 for receiving damage. The problem is, even though I set the input for while x button is pressed, set player one to action defend and the system when collide with player, the player still gets damage. I'd like to know how to fix it :/ I hope it's clear, here is the link for testing the project if it helps visually...
drive.google.com/file/d/1XPNVea6FVv96PIyT0crghRIpMsWsHKzn/view