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"

How to add a jump and falling animation to the 2D side scroller template?

Question: How to add a jump and falling animation to the 2D side scroller template?

Details I am using my own animations, I have already implemented the idle and walk but now I need to implement jump and falling loop. The jump goes up and down as one animation and the falling animation is looped. Thanks in advance. Oh and the jump animation cant be linked onto the Is Falling node because the animation of jumping is made so the character looks like hes going up.

Product Version: UE 4.9 Preview
Tags:
more ▼

asked Aug 02 '15 at 08:33 AM in Blueprint Scripting

avatar image

Raiju_
18 13 12 16

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

check out this https://goo.gl/Th3xUm , and look at the 2d sidescroller template

more ▼

answered Aug 05 '15 at 08:53 AM

avatar image

Mhousse1247
3.5k 152 28 318

avatar image Raiju_ Aug 13 '15 at 02:37 AM

Thanks, this was exactly what I needed.

(comments are locked)
10|2000 characters needed characters left

hummm....

  • in your charbp set a variable to "is jumping" to true and then when the jump completes set the variable to false.

  • in your animBP cast to your charbp and read the isjumping variable and set it to a variable in the animBP "isJumping_anim"

  • in state machine drag out your jumping animation and create a to from node to it form your idle and walk states

  • to enter the jump animation, make it so that "isJumping_anim" must be true

  • to exit, make it so that "isJumping_anim" must be false (and speed is 0 to idle or greater than 0 to walk)

  • then drag out your falling animation and do a to AND from node to falling animation from, idle/walk and just TO node from jump

  • to enter falling from any of those your rules should be "isJumping_anim is FALSE and isFalling is TRUE"

  • to exit isFalling is FALSE and speed is 0 or greater than 0

attached is mine. which is more complicated cuz theres tons of states but hopefully you get the idea. (isinAir is just the variable i created to represent "isFalling" )

oh and set a delay before turning off "isJumping" in your charbp so that the jumping animation plays for x amount of time (how long your jump animation actually is) . You can also use the rule "time remaining" in the state machine as well...before entering the falling animation. In cases where the character jumps off a ledge and after 2 seconds is no longer in the jump animation but instead is in the falling one now

alt text

more ▼

answered Aug 05 '15 at 08:20 AM

avatar image

thankstipscom
644 38 36 70

avatar image Raiju_ Aug 13 '15 at 02:12 AM

There's no AnimBP with 2D

avatar image thankstipscom Aug 13 '15 at 02:44 AM

cool. didnt know. never worked with 2d.

(comments are locked)
10|2000 characters needed characters left
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