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"

Delay Animation?


I am making a fight game and it has animations like right punch, left punch,.... aaand if i press "1" the character is doing the animation (right puncht) and if i press "2" he is doing the animation (left punct) and.....

So my first problem was, when i pressed "1" (animaton takes 3 sec). and after then when i pressed "2" 1 sec later he just started to do the second animation and didnt wait until the end of the first anim!

So i made "branch" and said "if the charater is playing dont play the animation and if not!, play the animation!" and it worked!

But now my problem is, when i press "1" ( and the character is playing the anim) i have to wait until the anim is finished. to do another animation!

What i want to do is! when i press "1" and 1 sec later "2"! the second animation should start after the first anim end.!!!!! SOS

I hope i could explain my problem with my superrrr english :D

Product Version: UE 4.16
more ▼

asked Aug 01 '17 at 05:20 PM in Using UE4

avatar image

8 1 4 6

avatar image SafaKrblt Aug 01 '17 at 06:00 PM


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

1 answer: sort voted first

Here's a simple solution.

  • Create an array to store pending attacks, this could be an enum of each of your defined tasks (recommended) or just int.

  • If you already are performing a task then, add the new task to the queue

  • When you're finished with your task, do the next task.

  • To ensure that the DoNextAction is called when the attack is finished and not just finished starting, use Delay or EventDispatchers

You can grab the paste of this code here.

more ▼

answered Aug 01 '17 at 06:50 PM

avatar image

2.2k 39 17 52

avatar image SafaKrblt Aug 05 '17 at 04:16 PM

i cant do it pls help mee

avatar image SafaKrblt Aug 05 '17 at 04:17 PM

i tried more than 4 hours but no success

avatar image BenVlodgi Aug 05 '17 at 04:56 PM

Did you copy the BPs I pasted above?

avatar image SafaKrblt Aug 05 '17 at 05:14 PM

yes but i dont know, what attack 1 should be and "do attack 1 stuff"

avatar image BenVlodgi Aug 05 '17 at 05:19 PM

Those should be your attacks and animation logic functions or events

avatar image SafaKrblt Aug 05 '17 at 05:21 PM

but i have just buttons and animations, how can i make attack of them

avatar image SafaKrblt Aug 05 '17 at 08:27 PM

i did it!! finally :- thank youuuuuuu

avatar image BenVlodgi Aug 06 '17 at 05:53 AM

Happy to help, glad it worked for you. If I answered your question, could you also upvote this answer?

avatar image SafaKrblt Aug 06 '17 at 10:04 AM

sure :) ^^

(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