# reset Flipflop

**URL:** <https://forums.unrealengine.com/t/reset-flipflop/389489>\
**Category:** Cinematics & Media\
**Tags:** reset, variables, flow-control, unreal-engine, question\
**Created:** [March 30, 2017, 3:10pm UTC](https://forums.unrealengine.com/t/reset-flipflop/389489 "2017-03-30T15:10:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![olaveiras](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@olaveiras](https://forums.unrealengine.com/u/olaveiras)\
**Post date:** [March 30, 2017, 3:10pm UTC](https://forums.unrealengine.com/t/reset-flipflop/389489/1 "2017-03-30T15:10:32Z")

</div>

I made a control sequencer with stop, replay and pause/unpause command (a keyboard command switches flipflop A to pause and B to play[unpause]).

The problem is when I pause, stop, replay and press pause, I need to press twice to pause for real. The flipflop maintained the last keyboard command before the stop. There is a way to automatically reset fliflop back to A after the sequencer being stopped?

I didn`t discover a way to reset BOOL variable value back to zero too… that could be a solution?

---

<div class="post-metadata">

**Author:** ![CDMcGwire](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cdmcgwire/32/754855_2.png) [@CDMcGwire](https://forums.unrealengine.com/u/CDMcGwire)\
**Post date:** [March 30, 2017, 6:39pm UTC](https://forums.unrealengine.com/t/reset-flipflop/389489/2 "2017-03-30T18:39:51Z")

</div>

Can you post a picture of how it’s all connected?

---

<div class="post-metadata">

**Author:** ![olaveiras](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@olaveiras](https://forums.unrealengine.com/u/olaveiras)\
**Post date:** [April 3, 2017, 11:32am UTC](https://forums.unrealengine.com/t/reset-flipflop/389489/3 "2017-04-03T11:32:28Z")

</div>

Hi CDMcGwire, sorry for the delay in answering.  
Here`s my BP

 ![132637-bp_flipflop+problem.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/c/e0cf08bcf2214d03c91cf2036a29b3ae1cbbce4b.jpeg)

---

<div class="post-metadata">

**Author:** ![CDMcGwire](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cdmcgwire/32/754855_2.png) [@CDMcGwire](https://forums.unrealengine.com/u/CDMcGwire)\
**Post date:** [April 3, 2017, 5:52pm UTC](https://forums.unrealengine.com/t/reset-flipflop/389489/4 "2017-04-03T17:52:39Z")

</div>

By having both a flipflop and Sequencer, you’ve created a timing issue. If at any point they update separately, such as with your replay and stop commands, they might go out of sync.

Instead of using a flipflop (and even more direct than my earlier suggestion) use the “IsPlaying” function of the SequencePlayer and a branch to control the pause/play function, as so:

 ![132752-flipflop_alternative.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/7/5b7705b9d40650bdedbfafca6b94f4157101a357.png)

---

<div class="post-metadata">

**Author:** ![olaveiras](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@olaveiras](https://forums.unrealengine.com/u/olaveiras)\
**Post date:** [April 3, 2017, 6:59pm UTC](https://forums.unrealengine.com/t/reset-flipflop/389489/5 "2017-04-03T18:59:28Z")

</div>

That is a big struggle for me. How did I reset or alternate a boolean value? In my attempts, once I injected a pulse in a boolean variable, it maintains this value forever.

PS.: I didn`t find this node "GetPlaybackSpeed"... there`s some other option with similar funcionality?

---

<div class="post-metadata">

**Author:** ![CDMcGwire](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cdmcgwire/32/754855_2.png) [@CDMcGwire](https://forums.unrealengine.com/u/CDMcGwire)\
**Post date:** [April 4, 2017, 1:47am UTC](https://forums.unrealengine.com/t/reset-flipflop/389489/6 "2017-04-04T01:47:29Z")

</div>

[Here’s the function I was talking about.](https://docs.unrealengine.com/latest/INT/BlueprintAPI/Game/Cinematic/GetPlayRate/index.html) I used the wrong name. I’m going to put a blueprint example together when I get home tonight.

---

<div class="post-metadata">

**Author:** ![olaveiras](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@olaveiras](https://forums.unrealengine.com/u/olaveiras)\
**Post date:** [April 5, 2017, 6:41pm UTC](https://forums.unrealengine.com/t/reset-flipflop/389489/7 "2017-04-05T18:41:28Z")

</div>

Perfect! It worked. So simple!

Thank you very much sir
