# My learning agents won't stop jumping, how do I fix this?

**URL:** <https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473>\
**Category:** Blueprint\
**Tags:** UE-5, unreal-engine, Machine-Learning, Learning-Agents, Blueprint, question\
**Created:** [July 25, 2025, 10:02pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473 "2025-07-25T22:02:51Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [July 25, 2025, 10:02pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/1 "2025-07-25T22:02:51Z")

</div>

What is the proper way to implement jumping with machine learning agents?

Every time I give my FPS learning agents the ability to jump they just keep jumping non stop. I’m sure I’ve implemented it **incorrectly**. I used a bool action that triggers a jump.

 ![Screenshot 2025-07-25 180033](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/c/23c7540566987249c7fdd0f4d8631c82d0408bbe.png)

I also added a null action that can block the jump action in hopes that the agents would use this to stop jumping as much but it didn’t work

 ![Screenshot 2025-07-25 180057](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/4/1c48ee20197c530d31d8f976c0bcff64b34eb90d.png)

---

<div class="post-metadata">

**Author:** ![Deathcalibur](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/deathcalibur/32/1037610_2.png) [@Deathcalibur](https://forums.unrealengine.com/u/Deathcalibur)\
**Post date:** [July 28, 2025, 1:57pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/2 "2025-07-28T13:57:42Z")

</div>

This should work I think. What do you have the action noise set to during inference? Perhaps its too high

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [July 28, 2025, 9:07pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/3 "2025-07-28T21:07:03Z")

</div>

Thank you for your response, I’m glad to hear that this method of jumping should work so I can look elsewhere for the issue.

I haven’t altered the default value for the action noise and I can’t seem to find where to set the action noise (sorry, I’ve only been using learning agents for about a week now so I’m still a noob). I found the “Initial Encoded Action Scale” but I don’t think that’s it. I tried calling the “Set Action Noise Scale” blueprint that I found from online documentation but it’s not coming up (even without context sensitive checked) and Google is no help at all.

If it’s not the action noise then I’m wondering if maybe my fall off penalty is making them prefer jumping non stop just in case they’re already headed for a pitfall, even if it only means living for half a second longer before receiving a penalty and episode termination. If that’s the case I think I just need to rework my reward values and retrain after a mindwipe. I also might add in overhead obstacles that block agents who are jumping erroneously b/c agents get rewards based on how quickly they reach the goal location.

I’ll try new reward scales and see if it’s on the right track, thanks again

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [July 29, 2025, 11:43am UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/4 "2025-07-29T11:43:55Z")

</div>

Update:

After trying new reward scales, adding overhead obstacles, and getting rid of pitfalls entirely (as well as removing the fall off penalty) and then training for a few hours the agents are still jumping any chance they get. I also added a jump penalty (negative reward on condition for if the agents’ z location is 10 or more above their original z location) but no change so far even after resetting all 4 networks and retraining.

After some more looking I still can’t find how to adjust action noise unfortunately.

I’m gonna keep trying new fixes and post a new update later today.

---

<div class="post-metadata">

**Author:** ![Deathcalibur](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/deathcalibur/32/1037610_2.png) [@Deathcalibur](https://forums.unrealengine.com/u/Deathcalibur)\
**Post date:** [July 29, 2025, 2:23pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/5 "2025-07-29T14:23:16Z")

</div>

When you run inference, you provide the action noise scale. Try setting this to 0 to start and then perhaps increasing it. I’m not sure that this is the issue but you should see some change I would imagine.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/b/10bcbf165e3037090ffe6bcf3a04e6f7992e3ff7.png)

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [July 29, 2025, 7:35pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/6 "2025-07-29T19:35:44Z")

</div>

Oh, I see now. I’m gonna try that when I can get to my computer and I’ll get back to you. Thank you

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [July 29, 2025, 11:12pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/7 "2025-07-29T23:12:28Z")

</div>

For some reason when I set “RunInference” to true by default it crashes Unreal. I can’t figure out what I screwed up here.

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [July 30, 2025, 12:58am UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/9 "2025-07-30T00:58:48Z")

</div>

I’m using Unreal 5.6 and this is the current setup for my learning agents manager, environment, and interactor. I’m pretty sure I’ve screwed up a lot of stuff here but I learn as I go, and when I don’t have jumping this setup produces some great results. With jumping they just don’t ever stop trying to jump.

**Learning Agents Manager setup:**

 ![Opera Snapshot_2025-07-29_234056_blueprintue.com](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/b/b7bdcd0dc3085047dd2cf12f320d38a3128ffabf.png)

> **[LAManagerSetup posted by anonymous | blueprintUE | PasteBin For Unreal Engine](https://blueprintue.com/blueprint/pljhxopa/)**
>
> No description provided

**Environment rewards:**

 ![Screenshot 2025-07-29 220533](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/2/e02f1804a970dcd4b5447580cb9133c46f39c5ee.png)

> **[LAEnvironmentRewards posted by anonymous | blueprintUE | PasteBin For Unreal...](https://blueprintue.com/blueprint/-g-2u-_x/)**
>
> No description provided

**Environment completions:**

 ![Opera Snapshot_2025-07-29_201454_blueprintue.com](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/b/88b87371bf0388de90e3f392dfea2e0d0194140d.png)

> **[LAEnvironmentCompletion posted by anonymous | blueprintUE | PasteBin For...](https://blueprintue.com/blueprint/hh1re7zr/)**
>
> No description provided

**Environment reset:**

 ![Opera Snapshot_2025-07-29_201808_blueprintue.com](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/c/28cadffeb6a16fdc0ed48fcacd94dca5e99ab166.png)

> **[LAEnvironmentReset posted by anonymous | blueprintUE | PasteBin For Unreal...](https://blueprintue.com/blueprint/36q3k-cf/)**
>
> No description provided

**Interactor specify observations:**

 ![Opera Snapshot_2025-07-29_202255_blueprintue.com](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/5/e9547e300a0622631f9ad9aced5a85abb30d078f.png)

> **[LAInteractorSpecifyObservations posted by anonymous | blueprintUE | PasteBin...](https://blueprintue.com/blueprint/crg2uwxl/)**
>
> No description provided

**Interactor gather observations** _(Goal location, direction, and velocity observations, followed by a bunch of ray observations)_ **:**

 ![Opera Snapshot_2025-07-29_203603_blueprintue.com](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/9/b990c93dc7228aea6edfefd49a764ba831759262.png)

> **[LAInteractorGatherObservations posted by anonymous | blueprintUE | PasteBin...](https://blueprintue.com/blueprint/ek4uugyj/)**
>
> No description provided

**Interactor specify actions:**

 ![Opera Snapshot_2025-07-29_203952_blueprintue.com](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/c/f2c47ffee61324569bd7096007f28cc9991acbed.png)

> **[LAInteractorSpecifyActions posted by anonymous | blueprintUE | PasteBin For...](https://blueprintue.com/blueprint/ea1h0lxp/)**
>
> No description provided

**Interactor perform actions:**

 ![Opera Snapshot_2025-07-29_204629_blueprintue.com](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/8/908637e6b03ee7a86a7784ac2f6d5ee85c399382.png)

> **[LAInteractorPerformActions posted by anonymous | blueprintUE | PasteBin For...](https://blueprintue.com/blueprint/colq69bb/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [July 30, 2025, 2:19am UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/10 "2025-07-30T02:19:14Z")

</div>

New discovery: I just found out that for some reason when I swap the jump null action and jump action orders so that the null action is before the jump action in the sequence then the agents stop jumping entirely. Jump action followed by jump null action = endless jump. Jump null action followed by jump action = never jump.

 ![Screenshot 2025-07-29 230545](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/c/03c92dbf242d1623e59ea9426aed612ee039e92e.jpeg)  
When the jump action is before the jump null action in sequence the visual logger shows a collection of agents with true and false values for their jump bool action, even though they jump every time they touch the ground the instant that they touch the ground. (almost instant, sometimes the agents stagger jumps by ~1/4 second, but even after training they never change)

 ![Screenshot 2025-07-29 222028](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/e/71e92eb929cd4edd9156e9c08c5ec5f0620bfd0e.jpeg)  
The visual logger shows no sign of the jump action being called when the null action is put before the jump action in the sequence.

I know I’ve screwed something up but I really love using the Learning Agents plugin and have tons of ideas for using it in my games so I’ll do whatever it takes to figure this out.

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [July 31, 2025, 11:34am UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/11 "2025-07-31T11:34:45Z")

</div>

After tons of tinkering and rebuilding I still can’t figure out how to use jumping with my agents properly. Is there some other action I should use instead of bool action maybe?

It’s driving me nuts because I can get all sorts of other actions to work properly but not jump for some strange reason. I thought this was going to be resolved with a quick Google search but now after hours and hours of experimenting and research I still feel just as clueless as I was days ago about what is causing this jump issue. I think I must be missing something obvious but I don’t know where to start. Plus, run inference is crashing my project every time I run it. Should I try using an older version of Unreal like 5.5?

---

<div class="post-metadata">

**Author:** ![Deathcalibur](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/deathcalibur/32/1037610_2.png) [@Deathcalibur](https://forums.unrealengine.com/u/Deathcalibur)\
**Post date:** [July 31, 2025, 1:57pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/12 "2025-07-31T13:57:31Z")

</div>

I’m not sure why you have a start and stop jump action. Perhaps try just having the jump action, which returns true = jump this frame, false = don’t jump.

BTW your location scale is only 100 which is about 1 meter, you probably want to change this to 10000 or however big your level is to push it into the range of [-1, 1].

Hope this helps.

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [July 31, 2025, 9:11pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/13 "2025-07-31T21:11:29Z")

</div>

I added the null action to set the bool StopJumping in an effort to stop them from jumping as much but I’ll revert to having just jump and try that, maybe it’ll work now that I’ve rebuilt most of the project.

I see, I was wondering if I was goofing up location scale. Thank you for your help. I’ll post an update later

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [July 31, 2025, 11:45pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/14 "2025-07-31T23:45:30Z")

</div>

I tuned the rewards and location scale so that’s looking good ([-1, 1] range), but so far my agents are still jumping non stop after taking out the null action and the StopJumping branch before the jump action. The null action for jumping wasn’t there to begin with, I only put it in to try to give the agents another way to stop jumping but it didn’t do anything (unless I intentionally put it in the wrong order where the jump null action is before the jump action in sequence, in which case the jump action gets blocked completely)

I’ve added a bunch of obstacles that block jumpers from progressing towards the goal location (they “clothesline” any agent who is in the air) but the agents just move so that they land right when they’ll be under the wall instead of taking a break from jumping and just walking under

 ![Screenshot 2025-07-31 193807](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/b/8bbfac35658f6941f2f8177a6a60d49ff1d75f62.jpeg)

I reset all 4 networks again so they haven’t been training for very long, but it doesn’t seem like it’s going to work so far. I’ll keep training them and see if they learn to stop jumping.

Thank you for helping me, I’m still learning and I really appreciate your time and patience.

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [August 1, 2025, 10:11am UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/15 "2025-08-01T10:11:26Z")

</div>

Sadly, the agents still won’t stop jumping with the new adjustments even after 30,000 iterations

I think they keep triggering the jump bool action’s true or false too frequently so even if they jump 1/100 of the frames then they’re still gonna jump as soon as they hit the ground (but I have no idea if that’s what’s happening or not, that’s just my speculation)

I still wonder if there’s a different way to add jump to the learning agents’ actions that I don’t know of but is obvious to everyone else. Is bool action what you would use to make FPS learning agents jump, and if not how would you prefer to implement jump in a FPS learning agent?

---

<div class="post-metadata">

**Author:** ![Deathcalibur](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/deathcalibur/32/1037610_2.png) [@Deathcalibur](https://forums.unrealengine.com/u/Deathcalibur)\
**Post date:** [August 1, 2025, 6:07pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/16 "2025-08-01T18:07:39Z")

</div>

Normally I have the problem where I can’t get my guys to jump lol. Usually its such an uncommon action that it isn’t getting used when it needs to be.

Have you 100% checked its not something in your game code? Probably by now you have but I’m at a loss at what your issue is.

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [August 2, 2025, 12:08am UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/17 "2025-08-02T00:08:01Z")

</div>

I replaced the jump bool action with a float action where floats given \>= 2 will jump and anything \< 2 will stop jumping. This works great! The agents are learning to use their rays to determine when to jump and when not to jump and they’re training shockingly fast. I’m gonna put pitfalls back in and see how they fare.

 ![Screenshot 2025-08-01 195747](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/5/ea5ac1612061f7088a4bc3a9cbc48d61b0ee8baa.png)

---

<div class="post-metadata">

**Author:** ![kjvermilion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kjvermilion/32/597749_2.png) [@kjvermilion](https://forums.unrealengine.com/u/kjvermilion)\
**Post date:** [August 2, 2025, 12:09am UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/18 "2025-08-02T00:09:24Z")

</div>

Thank you so much for your help, I’ve learned a lot about this subject from your tutorials and now even more from your help 1 on 1 which is hugely appreciated. I love learning agents and I can’t wait to use them in my games, keep up the great work!

---

<div class="post-metadata">

**Author:** ![Deathcalibur](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/deathcalibur/32/1037610_2.png) [@Deathcalibur](https://forums.unrealengine.com/u/Deathcalibur)\
**Post date:** [August 4, 2025, 1:41pm UTC](https://forums.unrealengine.com/t/my-learning-agents-wont-stop-jumping-how-do-i-fix-this/2618473/19 "2025-08-04T13:41:25Z")

</div>

> [@kjvermilion](#):
>
> I love learning agents and I can’t wait to use them in my games, keep up the great work!

I’m glad you were able to figure this out.

Not sure why the bool action wasn’t working for you. I will need to experiment with it some more but it seems to work fine in my setups.

No problem. Glad we could help. Let us know if you run into any other issues or have some request.
