# Use the same button for 4 actions or more, like toggling between run speeds or toggling perspective

**URL:** <https://forums.unrealengine.com/t/use-the-same-button-for-4-actions-or-more-like-toggling-between-run-speeds-or-toggling-perspective/145197>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [June 5, 2020, 7:06pm UTC](https://forums.unrealengine.com/t/use-the-same-button-for-4-actions-or-more-like-toggling-between-run-speeds-or-toggling-perspective/145197 "2020-06-05T19:06:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_7e6055c71](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7e6055c71](https://forums.unrealengine.com/u/anonymous_user_7e6055c71)\
**Post date:** [June 5, 2020, 7:06pm UTC](https://forums.unrealengine.com/t/use-the-same-button-for-4-actions-or-more-like-toggling-between-run-speeds-or-toggling-perspective/145197/1 "2020-06-05T19:06:38Z")

</div>

I would like to make it so i use 1 button for 5 different movement speeds.  
i tried to create a toggle, and i tried a sequence. i must be doing something wrong.

walk  
jog  
run  
sprint  
bolt

right now i have it setup for 2 buttons but i hate the way its working right now.  
its choppy and players will get confused because of how the speed modes are being picked, i just need a straight forward way to tap a button and it toggles down the line of acceptable entries and then goes back to the top.

i couldn’t find a loop that would work correctly… this image is what i have after cleaning it up so you can understand it.

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/8/88c2e32a62c8fbe27c30cb4bb530d4681d54289e.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 6, 2020, 11:41am UTC](https://forums.unrealengine.com/t/use-the-same-button-for-4-actions-or-more-like-toggling-between-run-speeds-or-toggling-perspective/145197/2 "2020-06-06T11:41:49Z")

</div>

> [@anonymous\_user\_7e6055c71](#):
>
> I would like to make it so i use 1 button for 5 different movement speeds.  
> i tried to create a toggle, and i tried a sequence. i must be doing something wrong.
> 
> walk  
> jog  
> run  
> sprint  
> bolt
> 
> right now i have it setup for 2 buttons but i hate the way its working right now.  
> its choppy and players will get confused because of how the speed modes are being picked, i just need a straight forward way to tap a button and it toggles down the line of acceptable entries and then goes back to the top.
> 
> i couldn’t find a loop that would work correctly… this image is what i have after cleaning it up so you can understand it.
> 
> ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/8/88c2e32a62c8fbe27c30cb4bb530d4681d54289e.png)

Like this:

![vars.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/2/82e7b08c7edd4d6e9e74231981278fcd7512fc03.jpeg)

 ![speedarray.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/0/a0874710fcdd592c899d2098bc00d3e9f7375210.jpeg)

 ![BP.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/6/362fb631ba11d687030a6234f00311bb14cc4793.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7e6055c71](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7e6055c71](https://forums.unrealengine.com/u/anonymous_user_7e6055c71)\
**Post date:** [June 7, 2020, 12:22am UTC](https://forums.unrealengine.com/t/use-the-same-button-for-4-actions-or-more-like-toggling-between-run-speeds-or-toggling-perspective/145197/3 "2020-06-07T00:22:37Z")

</div>

i really need to learn what all is possible with blueprints, i didnt realize you could change a float into an array through the details panel. thanks for the help.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 7, 2020, 8:55am UTC](https://forums.unrealengine.com/t/use-the-same-button-for-4-actions-or-more-like-toggling-between-run-speeds-or-toggling-perspective/145197/4 "2020-06-07T08:55:30Z")

</div>

> [@anonymous\_user\_7e6055c71](#):
>
> i really need to learn what all is possible with blueprints, i didnt realize you could change a float into an array through the details panel. thanks for the help.

No worries, just keep plugging away… 🙂
