# Mouse Movement And Sword Direction Combat

**URL:** <https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine\
**Created:** [June 14, 2015, 7:46pm UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567 "2015-06-14T19:46:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![usfshihy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@usfshihy](https://forums.unrealengine.com/u/usfshihy)\
**Post date:** [June 14, 2015, 7:46pm UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567/1 "2015-06-14T19:46:38Z")

</div>

If anyone have ever played The Elder Scrolls: Daggerfall ,he will be familiar with this type of combat, which if you are holding a sword for instance in the game and slide the mouse in a certain direction the sword will swing in that direction. So for example, if I moved my mouse forward then the sword will do a forward stabbing animation and hit whoever is in front of me.However, I also want to make a parry system, that if 2 players swing swords at each other in opposite directions they parry and no damage is taken to either players. I can’t really think of a correct and proper way to do this. Can someone please help.

---

<div class="post-metadata">

**Author:** ![TechSpectrum](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/techspectrum/32/739407_2.png) [@TechSpectrum](https://forums.unrealengine.com/u/TechSpectrum)\
**Post date:** [June 14, 2015, 8:11pm UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567/2 "2015-06-14T20:11:00Z")

</div>

I haven’t done it myself but it would involve a bit of animation blending like how. Like how there is a blend for walking backwards and forwards in the Rifle Animation Pro set, but you have to make your own to blend with the pitch and yaw. And for parry you would likely be doing collision checks for meshes to see if one comes in contact with another, and if they are it would play a backstab animation or something and cancel the attack animations.

TL;DR - Blending animations.

---

<div class="post-metadata">

**Author:** ![usfshihy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@usfshihy](https://forums.unrealengine.com/u/usfshihy)\
**Post date:** [June 15, 2015, 6:14pm UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567/3 "2015-06-15T18:14:57Z")

</div>

I can’t really understand the whole system correctly,can you please be more specific.

---

<div class="post-metadata">

**Author:** ![usfshihy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@usfshihy](https://forums.unrealengine.com/u/usfshihy)\
**Post date:** [June 16, 2015, 2:42pm UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567/4 "2015-06-16T14:42:38Z")

</div>

Bump!!!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 16, 2015, 3:08pm UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567/5 "2015-06-16T15:08:08Z")

</div>

Hi usfshihy,

Please do not bump threads that have not gone unanswered for 4 or more days from the last post. This clutters the forums and makes it exceedingly difficult to help anyone. To answer your question, check out this tutorial I made last year, it should help get you started on the blueprint side:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

After getting this set up, the actual swings will have to be animated and you will want to normalize your mouse movement to a 0-1 scale to determine how far the player swings in each direction, etc. I hope this helps get you going!

---

<div class="post-metadata">

**Author:** ![usfshihy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@usfshihy](https://forums.unrealengine.com/u/usfshihy)\
**Post date:** [June 16, 2015, 3:56pm UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567/7 "2015-06-16T15:56:33Z")

</div>

Thank you , sorry for the bump.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [June 17, 2015, 6:17am UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567/8 "2015-06-17T06:17:21Z")

</div>

[= ;312587]  
Please do not bump threads that have not gone unanswered for 4 or more days from the last post. This clutters the forums and makes it exceedingly difficult to help anyone.  
[/]

I’m confused. 😕  
should we make new threads instead of bumping old’ish threads then? won’t that cause even more clutter?

also is 4 days really a valid threshold for considering it dead? because a thread can fall into 2nd page oblivion in a matter of hours

---

<div class="post-metadata">

**Author:** ![joshcamas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joshcamas](https://forums.unrealengine.com/u/joshcamas)\
**Post date:** [June 18, 2015, 12:29am UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567/9 "2015-06-18T00:29:50Z")

</div>

Or several days, depending on which forum we are in.

---

<div class="post-metadata">

**Author:** ![Sitrec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sitrec](https://forums.unrealengine.com/u/Sitrec)\
**Post date:** [June 18, 2015, 6:28am UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567/10 "2015-06-18T06:28:38Z")

</div>

[=;313028]  
I’m confused. 😕  
should we make new threads instead of bumping old’ish threads then? won’t that cause even more clutter?

also is 4 days really a valid threshold for considering it dead? because a thread can fall into 2nd page oblivion in a matter of hours  
[/]

Totally agree, 4 doesn’t make any sense. If it didn’t get any answer the first day, it won’t after 3 either. I’d say change the rule to one day and maybe change it to not allow any blatant bumps, instead if you want to bump you add more information to the thread so that people might be able to help you this time.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [June 18, 2015, 6:47am UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567/11 "2015-06-18T06:47:30Z")

</div>

actually my point is that if you didn’t get any help the first time, what are you supposed to do if you can’t bump the thread? make a new thread and cause even more clutter? or really just shut up and live with the fact that your issue will always be there (and hope it doesn’t bring you to a full halt) ?

---

<div class="post-metadata">

**Author:** ![Cecil\_Merrell](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cecil_merrell/32/749670_2.png) [@Cecil\_Merrell](https://forums.unrealengine.com/u/Cecil_Merrell)\
**Post date:** [June 26, 2022, 8:45pm UTC](https://forums.unrealengine.com/t/mouse-movement-and-sword-direction-combat/32567/12 "2022-06-26T20:45:41Z")

</div>

For others that have gone down this rabbit hole and dead ended here with a broken post link, I believe I found 's tutorial here → [Actions Based on Mouse Movement | Unreal Engine Community Wiki](https://unrealcommunity.wiki/actions-based-on-mouse-movement-copi2hxm)
