Announcement

Collapse
No announcement yet.

Melee Combat System [Semi-Tutorial+Downloadable Project]

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    [TUTORIAL] Melee Combat System [Semi-Tutorial+Downloadable Project]

    Melee Combat System V 1.0
    • Includes a semi-intelligent Melee Combat System
    • Allows infinite number of key-presses
    • 100% Blueprint Based [No C++ Code]
    • Rather smoothe and has only one issue (which honestly is not even an issue, persay)...[read below]


    Known Bugs
    • The Melee system and animation blueprint interaction are not TRULY 'key-press' specific... What I mean by that, is the animation blueprint basically just checks to see if the Melee Timer has reached 0. If it has not, it moves onto the next animation, whereas if it were TRULY key-specific, it would read the melee chain, and play animations the moment a key is pressed (assuming the melee timer is not 0 ).....

      My theory to resolve this, allowing for a more realistic melee system, is by adding key-press conditions to the animblueprint's event-graph. I'm sure it's possible, but, I have not even looked into that at all. I'm trying to focus more on the stability of the 'timer' functionality.


    Semi-Tutorial
    Melee Branch

    Character Event Graph
    • Event Tick
      • Sequence-Node
        • Melee Invoke (Custom Function... Read Below)
        • Cast To your animation blueprint. In this project, "Cast to MondoAnimBP"-Node
        • Set two Attacking variables, and connect as demonstrated in the project. (It seems arbitrary, but, if not included for some reason, the melee system just DOES NOT WORK AS INTENDED)... I cannot figure this out, but, I do think it has something to do with the AnimBP not truly relying on the key-press. "Can anyone look into this and confirm? I'm almost certain it is... But again, that's for way later. This suffices for the time being. Alternatively, a delay works, but, the problem is it seems to have error if the game gets laggy. And you never know what HW is running the software.
        • Set "IsInMelee?" basedon chain count >= 2
        • Delay
        • Set "Attacking" to false
        • Set "IsInMelee" to false
        • (completely useless for now, but, it's what will be used to incorporate the sequence features. Read below....) Clear keypress to Array of string.
        • Reset the "MeleeEndTimer" to "MeleeBaseTime", which is our 'count-down' variable.
        • Set "MeleeChainCount" += 1

        • Melee Invoke: Includes actual timer functionality such as counting down, resetting variables once timer is 0, etc. The "Core".



    With this simple controller, you can see how EASY melee-combat is with Blueprint.

    What's Next?
    • Sequence based melee-chain. In essence, specific key-presses in "specific" or "range" time-frames. More details later.....


    Download V 1.0 -- Includes character controller, and entity from "Bless", the game. Please keep in mind that this project is solely based on educational intentions. Use the content to build your own Melee-Combat driven game, please.

    Also, check out Zombie-Camp, which very soon, will implement this system, alongside MeleeKombat 1.1 in the next Zombie-Camp release.(which is currently being rebuilt from scratch to minimize project size)

    IMPORTANT! -PROJECT INSTALL
    1. Create new Third person Blueprint project
    2. Delete ALL files in Content folder, and replace with the downloaded ones.
    3. Create a new level
    4. Ready to go ! Please report any issues you might stumble upon! Thx.

    Feedback greatly appreciated!
    Attached Files
    Last edited by Psilowin; 06-20-2014, 04:26 PM.

    #2
    Reserved......

    Comment


      #3
      reserved.......

      Comment


        #4
        reserved...........

        Comment


          #5
          Very cool, thanks for the 'tutorial', it's quite easy to follow too. It's great when there is something to dissect, I learn so much more picking something apart than watching a video.

          Comment


            #6
            Have we any luck to see a working video?
            ihavenick.net | Free, simple tutorials and news.
            atacetin.net | My portfolio page

            Comment


              #7
              Checking this out now, seems ideal for what im looking for.

              Comment


                #8
                Originally posted by hobbitjack View Post
                Checking this out now, seems ideal for what im looking for.
                Great! Thanks .

                Originally posted by DrifterGames View Post
                Very cool, thanks for the 'tutorial', it's quite easy to follow too. It's great when there is something to dissect, I learn so much more picking something apart than watching a video.
                Thanks ! I hope it's as useful in your learning process as it is mine.

                Originally posted by ihavenick View Post
                Have we any luck to see a working video?
                If so, I would not be able to make it at this time. My PC just can't handle it. Right now, I'm using a Macbook Air 2011 with only 2GB :\ Using Unreal is smooth most of the time, but, if anything else is open, it gives me hell. :\

                Comment


                  #9
                  Originally posted by Psilowin View Post
                  Great! Thanks .



                  Thanks ! I hope it's as useful in your learning process as it is mine.


                  If so, I would not be able to make it at this time. My PC just can't handle it. Right now, I'm using a Macbook Air 2011 with only 2GB :\ Using Unreal is smooth most of the time, but, if anything else is open, it gives me hell. :\
                  Are you still working on this? I'd really like to see 1.1 with the time framed sequence button presses.

                  Comment


                    #10
                    Anyone got a video showing this off?

                    Comment


                      #11
                      For some reason, it wont let me install the project: It's saying it can't take the files in the "UASSET" format .-.

                      Comment


                        #12
                        I really like your anims, good work.

                        Comment


                          #13
                          Hi,
                          Nice work, I really like it so far.
                          Did you create the animations yourself?
                          Check out my itch.io page, I'm really excited about it.
                          https://kinos141.itch.io/

                          Please check out my AI package: Action AI System Feat. Stealth
                          https://www.unrealengine.com/marketp...m-feat-stealth
                          or get it from itch
                          https://kinos141.itch.io/action-ai-system-feat-stealth

                          Comment


                            #14
                            Originally posted by WinterStasis View Post
                            For some reason, it wont let me install the project: It's saying it can't take the files in the "UASSET" format .-.
                            You dont import read his directions''
                            Go tp ypur fresh new 3rdperson project folder and delete and replace the Contents folder with his... make a new level and wala good to go..

                            Comment


                              #15
                              Does this melee system work like this?
                              OnGround《Combo Set~
                              Combo-1: Move1,Move2,Move3,Move4
                              C-2: Move1,PAUSE,Move5,Move6
                              C-3:Move1,Move2,PAUSE,Move7,Move8
                              C-4:Move1,Move2,Move3,PAUSE,Move9,Move10,Move11


                              Or can anyone direct me to something that can work in this system's fashion?

                              Comment

                              Working...
                              X