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"

Endless Runner UE4 Tut - Any way to constantly move the character without the TICK NODE

Hi just following this blueprint tutorial - https://www.youtube.com/watch?v=yS-yQfo0lc0&list=PLZlv_N0_O1gbY4FN8pZuEPVC9PzQThNn1

The image is my current set up.

alt text

But I don't want to use the event Tick , is there anything else I can use instead?

Product Version: UE 4.9
ue4 - movement.jpg (428.6 kB)
more ▼

asked Mar 03 '16 at 08:01 PM in Blueprint Scripting

avatar image

43 26 31 38

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

3 answers: sort voted first

You can use the suggestion as Sean provided with using a timer, although this isn't much different than actually using tick. The computer still needs to process that information X amount of times per tick/interval regardless if it's in tick or not.

However, using the timer example, you need to realize that the timer is continually running when set on loop so trying to get the character to stop as you provided obviously doesn't work because of the timer. Therefore, you need to stop the timer. You can either use Pause Timer or Clear Timer. Then to start the timer back up either unpause or Set Timer, depending on how you stopped it. To use the pause/clear functions you need to get a timer handle to your timer. Right click the "Return Value" on the output of your timer and select Create Variable - there is your handle.

Hope this helps!

more ▼

answered Mar 03 '16 at 10:42 PM

avatar image

1.4k 70 29 92

avatar image MattStH Mar 03 '16 at 11:05 PM

Hi thanks for your input, seems like it would work, but how would I set it up? A pic would be best if there were one.

avatar image jtsmith Mar 04 '16 at 01:55 AM

Not too complicated here, there's more you could probably do with this to get better effects but this is ultimately what you would need in order to start/stop the character from running:

alt text

The function 'Run' that I put into the Set Timer isn't a function I created for this demonstration. This function is whatever function you have created to make the character run.

Hope this clarifies it for you.

timerpause.png (289.3 kB)
avatar image MattStH Mar 04 '16 at 06:44 AM

Hi sorry saw your post late, I actually ended up doing the same thing more or less as you see in the pic.alt text

avatar image jtsmith Mar 04 '16 at 08:36 AM

Cool glad you got a solution. If my answer helped you at all, it would be greatly appreciated if you accepted the answer as correct. You'll know you accepted it when the answer and all of its comments turn green. Thanks!

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


You could replace tick with a custom event that is called every X amount of seconds. I used .001 in my setup, and it seemed to work just fine.

Here is a screenshot of my setup:

alt text

Let me know if there are any further questions.

Have a great day

replacetick.png (169.7 kB)
more ▼

answered Mar 03 '16 at 08:31 PM

avatar image

Sean L ♦♦ STAFF
43.5k 485 152 442

avatar image MattStH Mar 03 '16 at 09:32 PM

Thanks that works great, but with this set up I cant seem to press a button in order for the character to stop.

Is there a way to make the character stop when press a button, then resume once pressed again?

avatar image Sean L ♦♦ STAFF Mar 03 '16 at 09:37 PM

If you want to move on a key press, you could just use that key press event to fire off the Movement instead of using the Custom Event.

avatar image MattStH Mar 03 '16 at 09:44 PM

Hi I tried that but it doesn't work. Here is my current set up, am I doing something wrong?alt text

current set up.png (371.6 kB)
avatar image Sean L ♦♦ STAFF Mar 03 '16 at 09:46 PM

Look into using Input Axis bindings. This will allow you to get the result you're looking for. For reference, look at how the Third Person Template has its movement set up, as this seems to be closer to what you are looking for in your project.

Here is the documentation on Input:



avatar image MattStH Mar 03 '16 at 10:21 PM

I'm sorry but, I understand the setup. I just want a way to make the character to stop/start moving. I cant seem to turn on or off by setting up the axis by pressing the mouse left button.

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

You are trying too hard when u have an easy option :) use a timeline and give x axis value 1 at zero second or any speed u want and attach it to "add movement input" Checkout the image below

  • Timeline attached to "add player movement input" in character blueprint(which is hero in my case)

  • For the vector needed in "add player movement input" make vector and give input for any axis in which u want to make the character go ahead.(for me i want it to go forward in x-axis )

alt text

  • In timeline editor create a float .

  • Set float variable at time="0" value is="0.5"

  • Tick "loop"and "AutoPlay"

  • If you don't want to auto play on any specific event you can call the timeline and then call its function "Play"

alt text

more ▼

answered May 15 '17 at 10:25 PM

avatar image

1 1 3

(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