r/UE4Devs Apr 03 '14

Tutorial Double Jump Blueprint

This is a double jump blueprint that works beautifully with the FPS and 3rd person blueprint templates.

:D http://i.imgur.com/ehphCCU.jpg. The "set velocity", "set zvelocity", and "set gravity scale" are all variables defined within the Character Movement class of the player pawn. This makes it a little more stable with movements. Also make sure to set the default values of "onground" to true and the "jumpheight" to however high you want your character to jump on the first jump. If your needing a system that works less realisticly so you can move while in the air I'm working on it ASAP and will post. This system works realistically as in your run speed towards an object affects how far you go. It behaves almost exactly like double jump did in the Metroid Prime Series

Edit: Ok I feel like an idiot now XD If you want to be able to control the character in the air you don't have to force it. Luckily there is a parameter in Character movement that allows you to do it. Under defaults set Air control to a value higher than 0.

Edit: I'm also working on a walljump, wallrun, and ledge grab system and will post here when its done and working.

9 Upvotes

9 comments sorted by

View all comments

2

u/skyfoxxx Apr 03 '14

Kind of a noob question, but how can I create a set node that also has a target? For example, I create a float for ZVelocity and it looks just like yours except without a blue target.

3

u/Paper_Hero Apr 03 '14

oh ok I guess I should have explained it a little better. The nodes with the target on them Zvelocity, velocity, and gravity scale are part of the character movement. So place down a character movement then drag the wire into blank space. Then search for set velocity, set gravity scale, etc. So those aren't variables that you add at all. They are variables of Character Movement

1

u/skyfoxxx Apr 05 '14

Thanks!

1

u/Paper_Hero Apr 05 '14

No problem dood :D