# How to add jumping with "add force"

**URL:** <https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070>\
**Category:** Blueprint\
**Tags:** platformer, jump, unreal-engine, UE4, question, Blueprint\
**Created:** [January 4, 2016, 5:00pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070 "2016-01-04T17:00:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 5:00pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/1 "2016-01-04T17:00:33Z")

</div>

So I’ve finally been able to add forced movement to my 2d character (I’m making a platformer game), however this overrides any other actions I wish to execute, such as jumping. Why is this, and how can I fix it?

---

<div class="post-metadata">

**Author:** ![Daekesh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daekesh/32/918652_2.png) [@Daekesh](https://forums.unrealengine.com/u/Daekesh)\
**Post date:** [January 4, 2016, 5:03pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/2 "2016-01-04T17:03:25Z")

</div>

If you want to jump, you’d probably want to use ‘Add Impulse.’ Impulse is a single force applied at once. Add force needs to be applied each tick and takes into account delta time.

As for the rest of your stuff, no idea.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 5:08pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/3 "2016-01-04T17:08:29Z")

</div>

Would you please send a picture of how to do that? Or at least explain it? Thank you for the quick answer, by the way.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 5:08pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/4 "2016-01-04T17:08:58Z")

</div>

Oops sorry, should’ve done reply. “Would you please send a picture of how to do that? Or at least explain it? Thank you for the quick answer, by the way.”

---

<div class="post-metadata">

**Author:** ![Daekesh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daekesh/32/918652_2.png) [@Daekesh](https://forums.unrealengine.com/u/Daekesh)\
**Post date:** [January 4, 2016, 5:20pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/5 "2016-01-04T17:20:33Z")

</div>

I believe you’d use the ‘add impulse’ node on the actor’s root component. I’ve not done any of this in bp, though. I’m assuming you’re using paper2d with blueprints.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 5:45pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/6 "2016-01-04T17:45:49Z")

</div>

Yes, paper2d. I haven’t gone into c++ much at all, so I’m trying the forced movement with blueprints.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 5:50pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/7 "2016-01-04T17:50:41Z")

</div>

When I select it, it comes with the character movement attached to it. So do I cast to “2dsidescrollcharacter”?

---

<div class="post-metadata">

**Author:** ![Daekesh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daekesh/32/918652_2.png) [@Daekesh](https://forums.unrealengine.com/u/Daekesh)\
**Post date:** [January 4, 2016, 6:19pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/8 "2016-01-04T18:19:18Z")

</div>

When you select what? Screenshots are good.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d180f57a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d180f57a](https://forums.unrealengine.com/u/anonymous_user_d180f57a)\
**Post date:** [January 4, 2016, 6:55pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/9 "2016-01-04T18:55:54Z")

</div>

If I were using a CastTo node, usually that’d be when I needed to access a variable stored in that BP for use in the one I was now working in. I’ve got some more to do here, but I’ll reply again after I finish lunch here and give you a better solution, with some screenshots of what I did. However, like TTaM mentioned, try and screen cap what you’ve done already that hasn’t worked and post that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 6:59pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/10 "2016-01-04T18:59:41Z")

</div>

Sorry, I don’t know how to take a screenshot in UE4. I mean when I type in “add impulse”, and then click enter, it comes with the “add impulse” as well as the “character movement” thing attached. Where do I plug that into?

---

<div class="post-metadata">

**Author:** ![Daekesh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daekesh/32/918652_2.png) [@Daekesh](https://forums.unrealengine.com/u/Daekesh)\
**Post date:** [January 4, 2016, 7:05pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/11 "2016-01-04T19:05:24Z")

</div>

If you’re using windows or mac, go to [http://puush.me](http://puush.me), install their app and use ctrl+shift+4 to upload segments of your screen. It will put the link in your clipboard.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 7:07pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/12 "2016-01-04T19:07:23Z")

</div>

Sounds good, I’ll see if I can get a screenshot.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 7:10pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/13 "2016-01-04T19:10:46Z")

</div>

Alright, TTaM and JYatesAccoridon, here is my screenshot. As you can wee, I have the character movement forced to the right, which is working great, I just can’t seem to get the jump action to work. I’ve tried both of the bottom sectoins, but I’m still unsure what to do. 🙂

 ![72819-screenshot+(1).png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/1/6815cb66b69ec6576766c2544c0636f189b7f437.png)

---

<div class="post-metadata">

**Author:** ![Daekesh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daekesh/32/918652_2.png) [@Daekesh](https://forums.unrealengine.com/u/Daekesh)\
**Post date:** [January 4, 2016, 7:18pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/14 "2016-01-04T19:18:23Z")

</div>

So the aim of the blueprint you’ve just shown is to force the character to walk to the right, constantly?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 7:20pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/15 "2016-01-04T19:20:11Z")

</div>

Yes, like the platformer example game, only 2d.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 7:20pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/16 "2016-01-04T19:20:39Z")

</div>

I also want to incorporate a “slide” and “jump”

---

<div class="post-metadata">

**Author:** ![Daekesh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daekesh/32/918652_2.png) [@Daekesh](https://forums.unrealengine.com/u/Daekesh)\
**Post date:** [January 4, 2016, 7:22pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/17 "2016-01-04T19:22:18Z")

</div>

And what happens if you hit jump?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 7:24pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/18 "2016-01-04T19:24:53Z")

</div>

With this current blueprint, absolutely nothing. I just keep running.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1086f6781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1086f6781](https://forums.unrealengine.com/u/anonymous_user_1086f6781)\
**Post date:** [January 4, 2016, 7:26pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/19 "2016-01-04T19:26:03Z")

</div>

This was the only way that seemed to work for me regarding the constant running, but if you have another way that would comply with more actions such as jumping, please let me know! I just haven’t learned C++ yet, and that’s how they did the example.

---

<div class="post-metadata">

**Author:** ![Daekesh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daekesh/32/918652_2.png) [@Daekesh](https://forums.unrealengine.com/u/Daekesh)\
**Post date:** [January 4, 2016, 7:30pm UTC](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070/20 "2016-01-04T19:30:57Z")

</div>

Instead of the jump node, you coul dtry launch character with a z value of 100 or 1000, see what happens. And remove the stop jumping node. As for sliding, you could try the built in crouch method. You’d need to implement your own crouching animations and stuff, though.

Other than that, I think I’d need to get my hands on the project to see what was going on. That’s a bit beyond the scope of free help, though. 😛

[Next page](https://forums.unrealengine.com/t/how-to-add-jumping-with-add-force/343070.md?page=2)
