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"

Having a bug with the jump animation when spamming space bar

Hi !

My jump animation is working fine when just pressing the space bar, but when I spam it or press it again at the second my character touched the ground, the animation becomes stuck at the first frame :(

Here is a gif :

alt text

As you can see, the first 2 jumps worked fine, but the last 2 ones got stuck at the first frame..

Here is the blueprint of my character :

alt text

(don't mind the "double" and the "tapéair" variables, they're for the double jump and the hit in air animations.)

Thanks for the help !

Product Version: UE 4.22
more ▼

asked May 10 '19 at 01:12 PM in Blueprint Scripting

avatar image


avatar image geginator May 10 '19 at 10:38 PM

Try adding a delay after you press space once so that the spamming can't happen. You could try with delay as long as the animation for jump or a little shorter. Unless of course, you want to be able to spam it without any bugs.

I've never done this type of thing, so I can't help anymore than suggesting this and I'm not sure if it'll work.

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

1 answer: sort voted first

The way I'd handle it is that when you execute the jump function, just prior to that have a Is Falling? check which covers both going up and coming down (essentially if gravity is affecting your movement velocity or direction) and then if that comes back False, proceed with the jump but if it's true, do nothing and ignore the input.

more ▼

answered May 11 '19 at 04:03 AM

avatar image

95 8 10 12

(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