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. 

How can I connect this two branches with the event?

Hi,I'm working on a 2d game and I want the time to slow and stops when a key is pressed. This 2 scripts are working fine but they need to be connected with the event tick. As you all know, on blueprint of ue4 an event only can be conected with 1 widget. Event tick has also the animation system so it needs to be connected too. But the branches can't be connected at the same time, what I want to do is to have the 2 branches working so the 2 scripts can be used at the same time. I post you some images to understand it better:

So thats the all script: https://i.imgur.com/Z2mXCuJ.png

This is the event tick (with animation staff): https://i.imgur.com/oroVa8M.png

That's the 1st branch that needs to be connected (no working): https://i.imgur.com/0gexvqO.png

That's the 1st branch connected (working): https://i.imgur.com/kRcbcHG.png

That's the 2nd branch that needs to be connected (no working): https://i.imgur.com/2Fs8LVm.png

That's the 2nd branch connected (working): https://i.imgur.com/ZYQF85Q.png

What I want to do is to have the 2 branches working so the 2 scripts can work fine at the same time.

Product Version: UE 4.12
Tags:
more ▼

asked Jan 14 '18 at 10:50 AM in Blueprint Scripting

avatar image

marcmas31
14 3 2 6

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

1 answer: sort voted first

You should make 2 Custom Events. One called StopTime, the other SlowTime.

You can then call StopTime and SlowTime from your Tick function.

You could also use the Sequence node.

Hope that is what you are looking for ;)

more ▼

answered Jan 14 '18 at 11:08 AM

avatar image

Heidi
111 3 6 7

avatar image marcmas31 Jan 14 '18 at 12:02 PM

How I connect them I have the custom event created and the calls where I connect them them?

https://i.imgur.com/O0mCKRS.png

avatar image Heidi Jan 14 '18 at 01:08 PM

The Custom Event you have should be connected to the branch, where you Slowdown or Stop time.

You are calling these Events in the Tick function, and it seems to be correct what you did here.

avatar image marcmas31 Jan 14 '18 at 04:00 PM

thank you men it's working now! (I suposed tht I had connected the event to the branch but I didn't xd) Thanks you :D

(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