UE4 - Creating a RPG #25 - Melee Combat While Moving

노기현·2024년 11월 29일
post-thumbnail

Today's Lesson: Melee Combat While Moving

Summary

1. We take a look at how we can use layered animations to blend the walking animation and the melee attack animation. This allows the player to move while attacking.

Virtus Learning Hub


✅ Animation 처리

◼️ Animation Blending
In Animation Blueprint <Sword_AnimBP>
In Sword Attack State

  • layered blend per bone
    - Base Pose: Walk_Run_BS
    - Blend Poses0: slash animation
  • layered blend per bone - Details
    - Config - Layer Setup - Add Array Element
    상하체 구별을 위함
    - Bone name: Spine1
    - Blend Depth: 1
  • Bone name 참조

✅ Logic 처리

◼️ Melee Combat 로직 수정
In Character Blueprint <SwordCharacter>

  • 이동 불가 관련 삭제
  • 이동을 다시 가능하게 하는 부분 삭제

✅ Result

  • 이동 중 공격 가능
profile
RPG 기획자 지망생

0개의 댓글