Passer au contenu
Média 1 pour l'article Military Formation - V1 / V2

Description

Update 2.0:

* You can have differents formations from images now

Hello,

I propose a blueprint script that will allow you to have soldiers who will follow you everywhere on different formations.

On 4 different positions (v1):

  • Square
  • Line
  • V Shape
  • Random

The video:

https://youtu.be/_BCttLs_R60

It includes 3 meshs from the " particles effects" project in the learn section. (warSpoil)

  • SM_Cave_WarSpoils_Helmet
  • SM_Cave_WarSpoils_Shield
  • SM_Cave_WarSpoils_Sword

For the updated version :

I use 64x64 images to work with black and white.

Compression Setting : VectorDisplacementmap(RGBA8)

TestPointsPattern is your savior that can make your life easy.

Test button to test your config

  • Scaling for spacing the soldier
  • Near equals to adjusts the detection
  • X/Y debug line put the number of lines
  • Radius distance is to detect the closest point on segment ( check debug to understand)
  • Near equal leader is to detect the red pixel
  • Leader to check if there a leader or not
  • leader space will let you put soldier closer to you

Have fun understanding the behavior, it's only here to give you an exemple of how you can work with this system.

Formats inclus