# \[FREE\] Input Buffering plug-in for Unreal Engine 4

**URL:** <https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [March 17, 2017, 1:16pm UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871 "2017-03-17T13:16:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isatin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Isatin](https://forums.unrealengine.com/u/Isatin)\
**Post date:** [March 17, 2017, 1:16pm UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/1 "2017-03-17T13:16:56Z")

</div>

This plug-in can make your games more responsive by introducing **Input Buffering** to your projects. If you are working on action or fighting games, it’s definitely worth a try. All functionality is exposed via Blueprint, no need to write C++ code.

**Basic Edition** ]([Input Buffer Basic in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/input-buffer))  
**Advanced Edition** ]([Input Buffer in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/input-buffer-advanced-edition))

![InputBuffer_Featured_small.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/4/f34d594fc79b163c9a1f0ade378bbc5db929fd6f.jpeg)

**BASIC FEATURES**

- A new player controller class with an input buffer that allows developers to set up input events and store them in the buffer for future examination.
- A new asset type of **Input Command** that consists of sequences of input events and can represent typical input commands such as _Quarter-Circle-Forward Punch_ commonly found in fighting games
- Ability to tell whether given Input Commands match the contents of input buffer.

**ADVANCED FEATURES**

- You can draw input history like practice modes in many fighting games.
- A thumbnail renderer for **Input Commands** is also available to make them much more distinguishable by visualization.

**TUTORIALS**

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/0/720579cb7758f2995e8cbe33a0e0ce53914f01d2.jpeg "Input Buffer plug-in for Unreal Engine 4 : Introduction") ](https://www.youtube.com/watch?v=xAxOwMlSiok)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/4/4849ca125df222ce2390b71a1907d541d2c67994.jpeg "2. Input Command") ](https://www.youtube.com/watch?v=aIbBjJ6I-6A)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/1/141e24afcd3f16987a7802efb98cab2f51c93393.jpeg "3. How to make a Combo?") ](https://www.youtube.com/watch?v=OMifE80DxJw)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/d/d7d07a617fb64a4f51746f85c91fbf68aac09889.jpeg "4. Time Limits") ](https://www.youtube.com/watch?v=0NQSowb1L0U)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/9/be94c3f7b47cd822a355d2690a237379fbfde9ae.jpeg "5. Input Event Translation") ](https://www.youtube.com/watch?v=HMfMOr3PipQ)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/1/d11698b41e3979baa82467db256169974d76ea4e.jpeg "6. Visualization Features") ](https://www.youtube.com/watch?v=E6bW3d1jaCw)

Engine Version: 4.15-4.16  
Supported Development Platforms: All  
Supported Target Build Platforms: All  
**Documentation** ]([https://ue4inputbuffer.wordpress.com/](https://ue4inputbuffer.wordpress.com/))  
**Example Project** ]([Dropbox - InputBufferExample.zip - Simplify your life](https://www.dropbox.com/s/x655noqbun8hs09/InputBufferExample.zip?dl=0))

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f41e01c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f41e01c1](https://forums.unrealengine.com/u/anonymous_user_f41e01c1)\
**Post date:** [March 19, 2017, 9:01pm UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/2 "2017-03-19T21:01:18Z")

</div>

This looks really useful, thanks for sharing!

---

<div class="post-metadata">

**Author:** ![Aumaan\_Anubis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aumaan\_Anubis](https://forums.unrealengine.com/u/Aumaan_Anubis)\
**Post date:** [March 20, 2017, 2:03am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/3 "2017-03-20T02:03:20Z")

</div>

Thank you SO much!!!

---

<div class="post-metadata">

**Author:** ![Isatin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Isatin](https://forums.unrealengine.com/u/Isatin)\
**Post date:** [March 29, 2017, 2:58pm UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/4 "2017-03-29T14:58:58Z")

</div>

New tutorial video added!

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/d/d7d07a617fb64a4f51746f85c91fbf68aac09889.jpeg "4. Time Limits") ](https://www.youtube.com/watch?v=0NQSowb1L0U)

---

<div class="post-metadata">

**Author:** ![HQScanline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HQScanline](https://forums.unrealengine.com/u/HQScanline)\
**Post date:** [March 30, 2017, 8:19am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/5 "2017-03-30T08:19:15Z")

</div>

Thanks man, i’ll give it a look.

---

<div class="post-metadata">

**Author:** ![HQScanline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HQScanline](https://forums.unrealengine.com/u/HQScanline)\
**Post date:** [April 3, 2017, 11:15am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/6 "2017-04-03T11:15:06Z")

</div>

hello, is there anyway to count how many inputs did player make and if there were a lot of them to just ignore them?

---

<div class="post-metadata">

**Author:** ![Isatin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Isatin](https://forums.unrealengine.com/u/Isatin)\
**Post date:** [April 3, 2017, 11:49am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/7 "2017-04-03T11:49:37Z")

</div>

You can use UInputBufferComponent::GetLastEvents to retrieve the input in the last frame or UInputBufferComponent::GetHistoryRecords to retrieve the input over multiple frames. Then you can count how many input events there are.

I am not sure what you mean by the last part of your question. Do you mean, you want to ignore inputs if there are a lot of them? If so, first you can set the capacity of your input buffer. If it’s low, then you will never have a lot of inputs in the buffer. Second, you can set a time limit to retrieve inputs of last n seconds.

---

<div class="post-metadata">

**Author:** ![HQScanline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HQScanline](https://forums.unrealengine.com/u/HQScanline)\
**Post date:** [April 3, 2017, 3:32pm UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/8 "2017-04-03T15:32:23Z")

</div>

> [@Isatin;689912](#):
>
> I am not sure what you mean by the last part of your question. Do you mean, you want to ignore inputs if there are a lot of them? If so, first you can set the capacity of your input buffer. If it’s low, then you will never have a lot of inputs in the buffer. Second, you can set a time limit to retrieve inputs of last n seconds.

u can do that in blueprints?  
Point is, you see god of war games. its slasher where you have to bash buttons and if you will bash a lot of buttons you will have to wait for every button to finish its animation. so as u said i can set max buffer size to store input number?

---

<div class="post-metadata">

**Author:** ![Isatin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Isatin](https://forums.unrealengine.com/u/Isatin)\
**Post date:** [April 3, 2017, 4:50pm UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/9 "2017-04-03T16:50:57Z")

</div>

Those two function are blueprint callable. It’s a lot easier to count in C++, but it’s still doable in BP. However, I doubt what you want to do needs counting inputs.

Your sentence structure is not easy to follow for me. I do not understand your example nor what you really want to do. There are too many actions you can do in GoW. What is the one you refer to?

To answer your last questin, input buffer is used to store inputs, not the number of inputs. If you want to know the number, you have to count.

---

<div class="post-metadata">

**Author:** ![jwyuen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jwyuen](https://forums.unrealengine.com/u/jwyuen)\
**Post date:** [June 13, 2017, 2:28am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/10 "2017-06-13T02:28:30Z")

</div>

Hi Isatin

Still trying to figure out how to make Forwards the axis for facing the opponent. Do i make a variable called forward for this?

This is exactly what i am trying to do.  
Can you shed any light on this please?

Developers can override the event translation function to do something like converting left or right to forward or back, which is usually required in fighting games.

Thanks

 ![forwards.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/d/9d24ad198eb5f8df540fe6ecae25359e8cf9552b.jpeg)

---

<div class="post-metadata">

**Author:** ![Isatin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Isatin](https://forums.unrealengine.com/u/Isatin)\
**Post date:** [June 13, 2017, 3:15am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/11 "2017-06-13T03:15:55Z")

</div>

The thing is you need to register translated events and translate input events of Right/Left into Forward/Back in the TranslateInputEvent function. You didn’t show your TranslateInputEvent function so I can’t tell if you did it right.

But I can see there’s a mistake, KeyMappingName in EventSetups is used to reference a mapping in KeyMappings list, so it should be the name of one item on the list. Your KyeMappingName is “Move Right”, and the Name of your KeyMappings is “Forwards”. That’s certainly not correct. If you are still learning how to use this plug-in, I suggest you stay away from KeyMappings. It is not necessary to use it. It’s for input events of the same key mappings that have different input event types.

By the way, there is a space in your KeyMappingName. I am not sure if it’s valid for variables of Name type.

---

<div class="post-metadata">

**Author:** ![jwyuen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jwyuen](https://forums.unrealengine.com/u/jwyuen)\
**Post date:** [June 13, 2017, 3:40am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/12 "2017-06-13T03:40:55Z")

</div>

lol Thanks for getting back fast,  
Yeah I am confused in what needs to be done in that function.  
Looking into everything at the moment and cant find any details about this.  
I got a Direction in character BP called Direction and it is a Name String.

I think this project is a little bit hard at the moment for me while i am learning C++ and Blueprints.  
Getting the abilities and stuff is ok for me, But its the logic of more complex things, I found out how to make  
The characters always face each other In a street fighter /MK type of style.

Have you got any other documentation on this apart from the website blog and also the Youtube videos?

Thanks Isatin

 ![confused.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/9/99fc3332f7ddca59ac34890e6ab9f19122eb61ae.jpeg)

---

<div class="post-metadata">

**Author:** ![Aumaan\_Anubis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aumaan\_Anubis](https://forums.unrealengine.com/u/Aumaan_Anubis)\
**Post date:** [June 13, 2017, 5:11am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/13 "2017-06-13T05:11:57Z")

</div>

@jwyuen

I wanted to comment because I know a bit about fighting games.

You shouldn’t label your inputs as “forward” or “back” because “forward” will always be relative to your opponent. Everything should be labeled in a “left or right” notation.  
The concept of “forward” and “back” is purely for player level understanding of the commands, that they switch depending on facing direction.

EDIT: I see you do have “Forward Left” and “Forward Right”, so that makes my above post irrelevant xD

---

<div class="post-metadata">

**Author:** ![Isatin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Isatin](https://forums.unrealengine.com/u/Isatin)\
**Post date:** [June 13, 2017, 3:56pm UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/14 "2017-06-13T15:56:35Z")

</div>

Sorry for not providing doc for that, I was planning to make a tutorial video about that but I am quite busy with relocation and there are other videos with higher priority so I don’t think that it will come out soon.

What you need to do in that function is to return translated input events according to the situations in your concern, i.e., the facing of characters.

Let’s say we have two input events, **Left** and **Right**. What we have to do is translate them into **Forward** or **Back** in the function _TranslateInputEvent_. Provided that somehow we have a function named _IsFacingRight_ returning whether the character is facing right. So when the input is \*\*Right \*\*we need to return \*\*Forward \*\*if _IsFacingRight_ returns true and return **Back** otherwise like the following illustration:

 ![translate-input-events.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/9/8996aee8aeb55ef73fd4b89a19dac270efd083d6.jpeg)

---

<div class="post-metadata">

**Author:** ![cyaoeu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cyaoeu](https://forums.unrealengine.com/u/cyaoeu)\
**Post date:** [June 18, 2017, 9:46pm UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/15 "2017-06-18T21:46:00Z")

</div>

How does this plugin handle move priority? Like if you’ve got a move with 23A and a super with 2323A. What happens if you input 2323A?

---

<div class="post-metadata">

**Author:** ![Isatin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Isatin](https://forums.unrealengine.com/u/Isatin)\
**Post date:** [June 19, 2017, 1:31am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/16 "2017-06-19T01:31:19Z")

</div>

> [@cyaoeu;725349](#):
>
> How does this plugin handle move priority? Like if you’ve got a move with 23A and a super with 2323A. What happens if you input 2323A?

You have to handle that on your own.

Check out my Youtube channel and there is one video about making a combo. There is an example showing one way to do that.

---

<div class="post-metadata">

**Author:** ![TheLOCFoundation](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheLOCFoundation](https://forums.unrealengine.com/u/TheLOCFoundation)\
**Post date:** [June 19, 2017, 1:37am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/17 "2017-06-19T01:37:40Z")

</div>

![AAA 6_18_2017 9_34_16 PM.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/1/e1b8671dcd54bcbb9febfb37cbb7b3b715d51175.png)  
 ![AAA 6_18_2017 9_34_20 PM.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/7/e772070a781d639b174a3b8859358793428c2469.png)  
 ![AAA 6_18_2017 9_34_16 PM.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/3/a23c695c53c915bd52270ab7b75dd78b5b4e8066.png)  
 ![AAA 6_18_2017 9_34_20 PM.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/1/331bcb209c9b844e25308e343013ee66a7fe0f3d.png)  
 ![AAA 6_18_2017 9_34_40 PM.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/b/e5b4fb0de3cd5129c6ff55bd223620400a61e672.png)  
 ![ExamplePlayerController 6_18_2017 9_32_51 PM.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/7/617e4fecbc15a0983811a0a627711bf758a6df3d.png)  
 ![ExamplePlayerController 6_18_2017 9_33_15 PM.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/8/06844c2df1cfc0977c161176b411e12fe71d53e8.png)  
 ![ExamplePlayerController 6_18_2017 9_33_15 PM.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/8/06844c2df1cfc0977c161176b411e12fe71d53e8.png)

---

<div class="post-metadata">

**Author:** ![TheLOCFoundation](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheLOCFoundation](https://forums.unrealengine.com/u/TheLOCFoundation)\
**Post date:** [June 19, 2017, 1:38am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/18 "2017-06-19T01:38:42Z")

</div>

My above issue is that, I have two characters being controlled by two players, one from keyboard and another from gamepad. When I use the characters they work on both, until the gamepad player 2 tries to do the inputs. They both are the same blueprint class. (AAA)

---

<div class="post-metadata">

**Author:** ![cyaoeu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cyaoeu](https://forums.unrealengine.com/u/cyaoeu)\
**Post date:** [June 19, 2017, 11:05am UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/20 "2017-06-19T11:05:14Z")

</div>

> [@Isatin;725387](#):
>
> You have to handle that on your own.
> 
> Check out my Youtube channel and there is one video about making a combo. There is an example showing one way to do that.

Yeah, I saw that now, thanks. Isn’t it better to use a struct for the input and montage? It’s easier because you can see the input and the animation at the same time and also you could have montage arrays for each state (jumping, crouching) and trigger them with the same input based on a state check.

---

<div class="post-metadata">

**Author:** ![Isatin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Isatin](https://forums.unrealengine.com/u/Isatin)\
**Post date:** [June 19, 2017, 4:35pm UTC](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871/21 "2017-06-19T16:35:49Z")

</div>

> [@cyaoeu;725557](#):
>
> Yeah, I saw that now, thanks. Isn’t it better to use a struct for the input and montage? It’s easier because you can see the input and the animation at the same time and also you could have montage arrays for each state (jumping, crouching) and trigger them with the same input based on a state check.

Sure. But that’s not the point of the tutorial. To keep the video simple, I intentionally avoided mentioning Blueprint Struct.

In fact, I created an asset type of Move combining \*AnimMontage \*and _InputCommand_ in my personal project of fighting game. So it’s very easy and intuitive to add a new move.

[Next page](https://forums.unrealengine.com/t/free-input-buffering-plug-in-for-unreal-engine-4/87871.md?page=2)
