Hello i am trying to make a project with some combat ideas from the game Samurai Gunn, if your unfamiliar i attached a link of some gameplay.
What im basic trying to work out, is how i could blueprint when/if two swords collide at a precise moment that we negate eachother like in the gameplay footage, so that neither player takes damage and is just knocked back.
Also adding the current screenshot i have for my attack
How would i make that work from there?
after the cast doing another branch? or after the for each?
how would i check that if the other player is overlapping and attacking?
After you know they are overlapping. Then you check if they are attacking as well.
The delay you have after turning on “Is Attacking” is the amount of time each player has to attack at the same time. So currently there is a 0.2 sec window for both players to attack at the same time.
Edit: Btw, I’m have been assuming the other player has the exact same set up as this blueprint.
Oh okay i see what you mean
and yeah they have the same controls and functionality, however how would i tell the difference between the player that is attacking IsAttacking value and the player defending? or shouldnt that matter?
If you get “Is Attacking” out of the actor from your for loop, it will be that actors variable not yours. You’ll have to make that variable public to see it(the eye icon). Unless you’re using 4.7, then you shouldn’t have to do that.
Can you think of a way that the check doesnt include the player that is doing the initial hit?
In my testing it counts the player hitting as also being hit/taken into account for the hit :S
Thank you, your being very helpful
getting any interesting result that i thought i should share, even if the player is within the appropriate collision sphere (this may be changed to sword collision hit down the line) and clicked,
it will still come up with one hit and one miss
as the pictures show, any idea why?