# Creating a Speed Modifier?

**URL:** <https://forums.unrealengine.com/t/creating-a-speed-modifier/20757>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [February 10, 2015, 4:44pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757 "2015-02-10T16:44:54Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 17, 2015, 6:51pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/21 "2015-02-17T18:51:33Z")

</div>

Yeah, that looks about right…you’ll need to cast the GetPlayerCharacter to your character though.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 17, 2015, 7:05pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/22 "2015-02-17T19:05:33Z")

</div>

Okay I got the character to run faster and stays fast…but now he doesn’t stop (slow down)…did I connect something wrong?

 ![3605ba593ded5af62236e6acf3d93971a3ecd92d.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/0/3605ba593ded5af62236e6acf3d93971a3ecd92d.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 17, 2015, 7:08pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/23 "2015-02-17T19:08:13Z")

</div>

Once the timer runs out the player character needs to go back to the base 600 speed.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 17, 2015, 7:08pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/24 "2015-02-17T19:08:53Z")

</div>

I tried changing the 5 seconds in time remaining variable but it has no effect.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 17, 2015, 7:17pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/25 "2015-02-17T19:17:40Z")

</div>

Ah ULLS I believe I had it connected wrong…my apologies. Is this more like what you meant?

 ![d37be69bffe7fb38377532e8bde9b2ffef74b3e3.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/7/d37be69bffe7fb38377532e8bde9b2ffef74b3e3.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 17, 2015, 7:24pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/26 "2015-02-17T19:24:37Z")

</div>

I believe I am having an issue with the storing time in a variable part. Can you please explain? I simply created a Float variable named “Time Remaining”. Was this not the right thing to do?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 18, 2015, 3:51am UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/27 "2015-02-18T03:51:48Z")

</div>

Ok ULLS,

I totally screwed up the way you said to do it so I tried something different and I still get the same effect! My character speeds up and will run for the allotted time and then slows back down.

How can I set this blueprint up so that each time the character overlaps the (SpeedVolume) and he has already gone through one before the time/delay wears off …his time/delay to run fast is increased?

 ![SpeedBooster_BP_wip8.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/9/4928e004f733a16daf5ef3b9143ad0989ac524dc.jpeg)

I may just sleep on it and start over from scratch tomorrow…

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 18, 2015, 9:33am UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/28 "2015-02-18T09:33:38Z")

</div>

> [@GameHatcher;223662](#):
>
> Ah ULLS I believe I had it connected wrong…my apologies. Is this more like what you meant?
> 
> ![d37be69bffe7fb38377532e8bde9b2ffef74b3e3.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/7/d37be69bffe7fb38377532e8bde9b2ffef74b3e3.jpeg)

This is very close but you are setting your speed variable from the remaining time, you’ll want to set it as 2000 just like the other one from the false output of the branch, then set the ‘time remaining’ variable from the get remaining time node directly after. After this you should add the variable ‘remaining time’ to the standard boost time (e.g. RemainingTime + 10) and plug the output to the timer. This should then work.

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 18, 2015, 9:35am UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/29 "2015-02-18T09:35:05Z")

</div>

> [@GameHatcher;223932](#):
>
> Ok ULLS,
> 
> I totally screwed up the way you said to do it so I tried something different and I still get the same effect! My character speeds up and will run for the allotted time and then slows back down.
> 
> How can I set this blueprint up so that each time the character overlaps the (SpeedVolume) and he has already gone through one before the time/delay wears off …his time/delay to run fast is increased?
> 
> ![SpeedBooster_BP_wip8.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/9/4928e004f733a16daf5ef3b9143ad0989ac524dc.jpeg)
> 
> I may just sleep on it and start over from scratch tomorrow…

I don’t think it would be possible to do it using the delay node as it pauses the flow and has no way of tracking the remaining time.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 19, 2015, 2:46pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/30 "2015-02-19T14:46:05Z")

</div>

> [@ULLS;224039](#):
>
> I don’t think it would be possible to do it using the delay node as it pauses the flow and has no way of tracking the remaining time.

Thanks ULLS for all your help.

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 19, 2015, 3:07pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/31 "2015-02-19T15:07:56Z")

</div>

No problem, have you managed to get it working?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 20, 2015, 3:13pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/32 "2015-02-20T15:13:50Z")

</div>

No problem, have you managed to get it working?  
[/QUOTE]

Yes I did…but I did it through using an interface and then calling that interface in the MyCharacter BP. Your help was insightful and much appreciated.

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 20, 2015, 3:19pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/33 "2015-02-20T15:19:42Z")

</div>

> [@GameHatcher;225746](#):
>
> Yes I did…but I did it through using an interface and then calling that interface in the MyCharacter BP. Your help was insightful and much appreciated.

Great news!! 😃

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7c9ddb3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7c9ddb3](https://forums.unrealengine.com/u/anonymous_user_e7c9ddb3)\
**Post date:** [April 12, 2016, 3:25pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/34 "2016-04-12T15:25:03Z")

</div>

thnx for ULLS thats helpful but more detail for nobs its verry appreciated :rolleyes:

[Previous page](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757.md?page=1)
