# How to increase a float value over time

**URL:** <https://forums.unrealengine.com/t/how-to-increase-a-float-value-over-time/468543>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 23, 2020, 4:46pm UTC](https://forums.unrealengine.com/t/how-to-increase-a-float-value-over-time/468543 "2020-07-23T16:46:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thecooldude148](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thecooldude148/32/924725_2.png) [@Thecooldude148](https://forums.unrealengine.com/u/Thecooldude148)\
**Post date:** [July 23, 2020, 4:46pm UTC](https://forums.unrealengine.com/t/how-to-increase-a-float-value-over-time/468543/1 "2020-07-23T16:46:37Z")

</div>

I’m trying to make a game thats like Jetpack Joyride, which is basically a character moving, and every 10 seconds, the value would increase and keep increasing forever until the game ends.

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [July 23, 2020, 4:49pm UTC](https://forums.unrealengine.com/t/how-to-increase-a-float-value-over-time/468543/2 "2020-07-23T16:49:05Z")

</div>

Use a Timer.

---

<div class="post-metadata">

**Author:** ![Thecooldude148](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thecooldude148/32/924725_2.png) [@Thecooldude148](https://forums.unrealengine.com/u/Thecooldude148)\
**Post date:** [July 23, 2020, 6:27pm UTC](https://forums.unrealengine.com/t/how-to-increase-a-float-value-over-time/468543/3 "2020-07-23T18:27:40Z")

</div>

I’m learning blueprint, so I may have some trouble. There isn’t anything specifically called “Timer”, however, I assume to use the “Set Time by Event”, but what should i put in? The output says “return value” (Time handle structure) and the execute pin. So im not sure how to put out a float towards the speed. So basiclaly, i dont know what to do with the timer thing.

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [July 23, 2020, 6:31pm UTC](https://forums.unrealengine.com/t/how-to-increase-a-float-value-over-time/468543/4 "2020-07-23T18:31:31Z")

</div>

Speed? What are you trying to do?

---

<div class="post-metadata">

**Author:** ![Thecooldude148](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thecooldude148/32/924725_2.png) [@Thecooldude148](https://forums.unrealengine.com/u/Thecooldude148)\
**Post date:** [July 23, 2020, 6:35pm UTC](https://forums.unrealengine.com/t/how-to-increase-a-float-value-over-time/468543/5 "2020-07-23T18:35:23Z")

</div>

Ok, so I have an object that keeps going in one direction, I want to make it so every few seconds, the speed gets faster and faster. What I have set up right now, is the movement input and event tick. Keep in mind, the player does not move the object as it moves itself

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [July 23, 2020, 6:56pm UTC](https://forums.unrealengine.com/t/how-to-increase-a-float-value-over-time/468543/6 "2020-07-23T18:56:56Z")

</div>

Since I’m not at my computer, I’m going to have to write it down:

Are you using a character movement component? Is so:

- Connect “Begin Play” to a “Set Timer by Event” where you check “Looping” and set the time to 10.0
- Create a custom event and connect it to “Set Timer by Event”.
- In this event just increase the “Max Walk Speed” of the character movement component.

---

<div class="post-metadata">

**Author:** ![Thecooldude148](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thecooldude148/32/924725_2.png) [@Thecooldude148](https://forums.unrealengine.com/u/Thecooldude148)\
**Post date:** [July 23, 2020, 8:20pm UTC](https://forums.unrealengine.com/t/how-to-increase-a-float-value-over-time/468543/7 "2020-07-23T20:20:37Z")

</div>

Thank you so much! I got it all working! I didn’t know I needed to use “Max Walk Speed” even though I started off complete scratch and used a random object.
