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"

Why does my FTimeline only tick twice?

I assigned a delegate, called TimelineDeal, to call after each timeline tick but this delegate only gets called twice. I am calling TickTimeline() in the actor's tick. My timeline is set to play for 4 seconds, but whether it's 4 seconds or 4000 seconds, the result is the same. Considering the timeline should tick every time the actor's tick is called, I don't know why it would stop after 2 times. Here is my code:


  FTimeline TDeal;
  FOnTimelineEvent TDealUpdate;
  int32 TimelineDealCounter;


  ASCard::ASCard(const FObjectInitializer& ObjectInitializer)
       PrimaryActorTick.bCanEverTick = true;
       TDeal = FTimeline();
       TimelineDealCounter = 0;

  void ASCard::Tick(float DeltaTime)

  void ASCard::Dealing()
       TDealUpdate.BindUFunction(this, FName("TimelineDeal"));


  void ASCard::TimelineDeal()
       GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::FromInt(TimelineDealCounter));

Dealing() is called on this actor from my GameMode class.

Product Version: UE 4.8
more ▼

asked Jul 09 '15 at 01:52 AM in C++ Programming

avatar image

554 59 164 125

avatar image Kochab Jul 11 '15 at 07:00 PM

This may have something to do with it, but I still don't see how it would be getting called more than twice in one frame, given that it's only called once in tick.


avatar image pusheax Jul 11 '15 at 08:59 PM

Tried checking GetPlaybackPosition this two times?

avatar image Kochab Jul 13 '15 at 08:22 PM

The only way I can get it to continuously play is by adding:


at the top of TimelineDeal(). However, doing this seems to make it ignore the length. It will just run forever. It also seems redundant to add TDeal.Play() considering I already set it to PlayFromStart().

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

0 answers: sort voted first
Be the first one to answer this question
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