x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Jump Animation Issue

OK so I saw a similar question asked but it wasn't answered. I am trying to delay the action of the char jumping till a certain point in the animation. the animation crotches down before jumping and leaving the ground. Currently the char leaves the ground and the animation plays how do i play the animation and after a delay move the char?

alt text alt text

Product Version: UE 4.17
Tags:
jump.png (192.3 kB)
jumpbase.png (52.5 kB)
more ▼

asked May 12 '18 at 10:24 PM in Blueprint Scripting

avatar image

Sc0ttyB0y0
6 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

the JUMP node in the first picture handles the logic for the character movement jump. IT does not care about any animation.

My approach to this was to disconnect the jump nodes from the "jump input action"

the "Jump input action" i connected to an "anim montage" that performs the jump animation.

In the anim montage, i put an ANIM NOTIFY at the exact point in the animation where the character jumps.

the ANIM NOTIFY then calls out the actual JUMP node (the one that handles the actual movement- the one originally was plugged in the to Input action jump_

more ▼

answered May 13 '18 at 06:00 AM

avatar image

chriscast
6 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Thanks for the response! So I did some looking into anim montages and came across a video on animation notifiers, so i solved this by adding a var called jump_1 in my char blueprint and adding a custom notifier in the animation at the point where the character actually leaves the ground. Then call that notifier and set jump_1 to true. Then in my jump function when the button is pressed it plays the animation. At a branch it checks for jump_1 to be true if it is it then moves the character. The pictures should give you a better idea of what I did. alt text alt textalt text

jumpfix-2.png (22.7 kB)
jumpfix.png (119.2 kB)
jumpfix-1.png (62.3 kB)
more ▼

answered May 15 '18 at 06:15 PM

avatar image

Sc0ttyB0y0
6 1 3

avatar image Sc0ttyB0y0 May 15 '18 at 06:38 PM

Ok so i didn't realize it but this breaks after the jump is complete it doesn't go back to idle or allow other animations to play. Anyone know what I'm missing

avatar image SenToRious May 15 '18 at 07:53 PM

You should probably call an event on the character to execute the jump node rather than setting a variable to true, and how does Jump1 go back to false ? I suggest you create a custom event on the characterBP and call it from the notify this way even if the jump animation is long the character will be asked to jump eventually, I don't think the Play Animation node waits for the animation to finish you immediately check for the variable value while animation has just started.

avatar image Sc0ttyB0y0 May 15 '18 at 07:59 PM

Ah yes this is the fix it works now although now i need to smooth it from jump back to idle also i need to adjust how high the jump is.

alt textalt text

jumpfix3.png (90.5 kB)
jumpfix4.png (86.0 kB)
avatar image SenToRious May 15 '18 at 08:08 PM

The characterMovement component should have a jump Z velocity https://answers.unrealengine.com/questions/46307/how-can-i-change-a-characters-jump-height-in-bluep.html

In your locomotion select the transition between Idle and jump and set the interpolation speed by default it's 0.2

avatar image Sc0ttyB0y0 May 15 '18 at 08:50 PM

Thank you. for some reason changing the velocity doesn't make the character jump higher. I tried a different animation and it worked fine i suppose something about the animation was broken?

avatar image SenToRious May 15 '18 at 08:57 PM

The animation shouldn't affect the jump velocity, I'm not sure if Stop Jump cancels out your jump, so try disconnecting that and see.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question