# How to stop constantly switching of bools and make them work one by one?

**URL:** <https://forums.unrealengine.com/t/how-to-stop-constantly-switching-of-bools-and-make-them-work-one-by-one/400558>\
**Category:** Blueprint\
**Tags:** fighting-game, unreal-engine, UE4, Blueprint, question\
**Created:** [July 23, 2017, 12:16pm UTC](https://forums.unrealengine.com/t/how-to-stop-constantly-switching-of-bools-and-make-them-work-one-by-one/400558 "2017-07-23T12:16:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sid909](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sid909](https://forums.unrealengine.com/u/Sid909)\
**Post date:** [July 23, 2017, 12:16pm UTC](https://forums.unrealengine.com/t/how-to-stop-constantly-switching-of-bools-and-make-them-work-one-by-one/400558/1 "2017-07-23T12:16:15Z")

</div>

Hello i am working on 2d PvP game and making A.I. but stuck at a point where i want my character to shoot powerball or walk at player, when at some distance. I made this system but problem is my character constantly change between walk and powerball shooting when i use delay it affects movement. So i want a system by which my booleans of powerball and movement change one by one but in random manner.
