Is there a way to work out whether a character is idle?
I'm new to Unreal Engine and I've been trying to work this out and Google all over the internet but I can't seem to find an answer. I'm trying to make it so when my character is idle, he will slowly lose stamina. I've created a stamina bar that works and everything, but I'm not to sure how to check whether my character is idle or not, with the blueprints? And if so, then decrease the stamina in the stamina meter. Is there a way to do this?
Thank you in advance!
Forgot to add this but I'm adding this now, I'm creating a simple 2D side scrolling game with Unreal's 2D side scrolling mode
I would recommend creating a float within your SideScrollerCharacter. On tick add the delta value to the new parameter. If it goes above a certain threshold you can start the damage.
When movement/jump input is triggered you can reset the float to 0.
answered May 03 '18 at 06:18 PM
On Tick, get actor velocity --> Get Vector Length --> Float = 0. That will return whether the character is idle. Hope that helps :)
answered May 04 '18 at 01:08 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here