Melee module overview popularité : 85
Weapons popularité : 92
Blade component popularité : 89
Shields popularité : 88
Combat popularité : 89
Melee clip popularité : 73
Slide 1
Slide 2
Slide 3
Slide 4
Slide 5
Slide 6
Slide 7
Slide 8
Slide 9
Slide 10
IMAGE OR CARROUSEL for section header You successfully read this important alert message.

TEXTE AVANT FILTRAGETime to put everything learned together. So, we have Weapon assets which determine how the weapon captures hits and has a list of combo attacks, represented using Melee Clips. We also have a Shield asset associated that determines how the weapon will block and react to hits while blocking.

So, the question is: How do we create a combat system?

Engaging Combat

We’ll start seeing how to start engaging foes. Both from the Player and enemy perspectives, the process is the same. A Character must be wielding a weapon in order to be hurt.

So the first thing to do is to draw a weapon from the sheathe using the Draw Weapon action and passing the desired weapon as a parameter.

assets%2F-LAqwYovmUPn5V6CMeID%2F-M2y1dxxa5V0LHWmI564%2F-M2yBPQqYnaTsooFDef-% (...)

("On Start" Trigger calls the "Draw Weapon" Action on the Player
Once the character has the weapon draw (the same should be done with the other enemies), it’s time to lock onto their opponents.

Enemies should always lock onto the Player. however, depending on the type of game, you may want to let the player lock onto enemies or use a more free-flow approach so it can attack anyone around.

To lock a character onto another one, simply use the Focus Target Action. It will automatically face it and all attacks will be directed towards its opponent. This is the easiest way to let enemies approach the Player.


Attacking works the same way for the player and for enemies. In the Combo Creator list from the Weapon there should be a bunch of chains of attacks specified by key letters, like A+A+A.

In order to execute attacks, all that needs to be done is to use the Input Melee Attack Action. This, rather than instantly executing the desired attack, it will enqueue the command.

assets%2F-LAqwYovmUPn5V6CMeID%2F-M2yF2dHFQ5FEH1gr_PX%2F-M2yKVV1G7i1m-tdl87O% (...)

(Input Melee Attack Action)
Input Commands are enqueued in a list and have a certain lifetime. If their lifetime expires, the commTEXTE APRES FILTRAGE
-  : liste tous les intertitres de l’article
-  : liste tous les documents de l’article sous forme de mini-vignette non cliquables. Avec deux paramètres :

width : largeur de la vignette en px,
raz : nombre de vignette sur une seule ligne. Juste après la Nième(raz) vignette, un
est inséré.